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

Method test_tlsinsecure_simple

test/test_uri_parser.py:455–466  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

453 )
454
455 def test_tlsinsecure_simple(self):
456 # check that tlsInsecure is expanded correctly.
457 self.maxDiff = None
458 uri = "mongodb://example.com/?tlsInsecure=true"
459 res = {
460 "tlsAllowInvalidHostnames": True,
461 "tlsAllowInvalidCertificates": True,
462 "tlsInsecure": True,
463 "tlsDisableOCSPEndpointCheck": True,
464 }
465 print(parse_uri(uri)["options"])
466 self.assertEqual(res, parse_uri(uri)["options"])
467
468 def test_normalize_options(self):
469 # check that options are converted to their internal names correctly.

Callers

nothing calls this directly

Calls 1

parse_uriFunction · 0.90

Tested by

no test coverage detected