(self)
| 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. |
nothing calls this directly
no test coverage detected