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)
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
def test_map(self): from M2Crypto.SSL.Context import map, _ctxmap assert isinstance(map(), _ctxmap)