1 # Copyright (c) Twisted Matrix Laboratories.
2 # See LICENSE for details.
6 from twisted.trial.unittest import TestCase
8 from twisted.python import context
10 class ContextTest(TestCase):
12 def testBasicContext(self):
13 self.assertEqual(context.get("x"), None)
14 self.assertEqual(context.call({"x": "y"}, context.get, "x"), "y")
15 self.assertEqual(context.get("x"), None)