示例#1
0
 def test_map(self):
     from M2Crypto.SSL.Context import map, _ctxmap
     self.assertIsInstance(map(), _ctxmap)
     ctx = SSL.Context()
     assert map()
     ctx.close()
     self.assertIs(map(), _ctxmap.singleton)
示例#2
0
 def test_map(self):
     from M2Crypto.SSL.Context import map, _ctxmap
     assert isinstance(map(), _ctxmap)
     ctx = SSL.Context()
     assert map()
     ctx.close()
     assert map() is _ctxmap.singleton
示例#3
0
 def test_map(self):
     from M2Crypto.SSL.Context import map, _ctxmap
     assert isinstance(map(), _ctxmap)