Пример #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)