示例#1
0
    def test(self):
        c = blueox.Context("test")
        c.start()

        blueox.clear_contexts()

        assert_equal(blueox.current_context(), None)
示例#2
0
    def test(self):
        c = blueox.Context('test')
        c.start()

        blueox.clear_contexts()

        assert_equal(blueox.current_context(), None)
示例#3
0
 def test(self):
     # Non-writable context shouldn't show up.
     current_c = blueox.current_context()
     assert not current_c
示例#4
0
 def test(self):
     # Non-writable context shouldn't show up.
     current_c = blueox.current_context()
     assert not current_c