Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright (c) 2001-2004 Twisted Matrix Laboratories. | |
| 2 # See LICENSE for details. | |
| 3 | |
| 4 # | |
| 5 | |
| 6 from twisted.trial.unittest import TestCase | |
| 7 | |
| 8 from twisted.python import context | |
| 9 | |
| 10 class ContextTest(TestCase): | |
| 11 | |
| 12 def testBasicContext(self): | |
| 13 self.assertEquals(context.get("x"), None) | |
| 14 self.assertEquals(context.call({"x": "y"}, context.get, "x"), "y") | |
| 15 self.assertEquals(context.get("x"), None) | |
| OLD | NEW |