Exemple #1
0
 def test_map(self):
     from M2Crypto.SSL.Context import ctxmap, _ctxmap
     self.assertIsInstance(ctxmap(), _ctxmap)
     ctx = SSL.Context()
     assert ctxmap()
     ctx.close()
     self.assertIs(ctxmap(), _ctxmap.singleton)
Exemple #2
0
 def test_map(self):
     from M2Crypto.SSL.Context import ctxmap, _ctxmap
     self.assertIsInstance(ctxmap(), _ctxmap)
     ctx = SSL.Context()
     assert ctxmap()
     ctx.close()
     self.assertIs(ctxmap(), _ctxmap.singleton)