コード例 #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
ファイル: test_ssl.py プロジェクト: mikedougherty/M2Crypto
 def test_map(self):
     from M2Crypto.SSL.Context import map, _ctxmap
     assert isinstance(map(), _ctxmap)