MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / test_normalize_options

Method test_normalize_options

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

Source from the content-addressed store, hash-verified

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"

Callers

nothing calls this directly

Calls 1

parse_uriFunction · 0.90

Tested by

no test coverage detected