(self)
| 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. |
| 470 | uri = "mongodb://example.com/?ssl=true&appname=myapp" |
| 471 | res = {"tls": True, "appname": "myapp"} |
| 472 | self.assertEqual(res, parse_uri(uri)["options"]) |
| 473 | |
| 474 | def test_unquote_during_parsing(self): |
| 475 | quoted_val = "val%21%40%23%24%25%5E%26%2A%28%29_%2B%3A+etc" |
nothing calls this directly
no test coverage detected