MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / test_pyopenssl_ignored_in_async

Method test_pyopenssl_ignored_in_async

test/test_ssl.py:669–672  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

667 @unittest.skipUnless(_HAVE_PYOPENSSL, "PyOpenSSL is not available.")
668 @unittest.skipUnless(HAVE_SSL, "The ssl module is not available.")
669 def test_pyopenssl_ignored_in_async(self):
670 client = MongoClient("mongodb://localhost:27017?tls=true&tlsAllowInvalidCertificates=true")
671 client.admin.command("ping") # command doesn't matter, just needs it to connect
672 client.close()
673
674
675if __name__ == "__main__":

Callers

nothing calls this directly

Calls 3

closeMethod · 0.95
MongoClientClass · 0.90
commandMethod · 0.45

Tested by

no test coverage detected