Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/test/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/test/test_context.py

# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

#

from twisted.trial.unittest import TestCase

from twisted.python import context

class ContextTest(TestCase):

    def testBasicContext(self):
        self.assertEqual(context.get("x"), None)
        self.assertEqual(context.call({"x": "y"}, context.get, "x"), "y")
        self.assertEqual(context.get("x"), None)