(self)
| 513 | parse_uri(uri) |
| 514 | |
| 515 | def test_handle_colon(self): |
| 516 | token = "token:foo" |
| 517 | uri = ( |
| 518 | "mongodb://user:password@localhost/?authMechanism=MONGODB-AWS" |
| 519 | "&authMechanismProperties=AWS_SESSION_TOKEN:" + token |
| 520 | ) |
| 521 | res = parse_uri(uri) |
| 522 | options = { |
| 523 | "authMechanism": "MONGODB-AWS", |
| 524 | "authMechanismProperties": {"AWS_SESSION_TOKEN": token}, |
| 525 | } |
| 526 | self.assertEqual(options, res["options"]) |
| 527 | |
| 528 | def test_special_chars(self): |
| 529 | user = "user@ /9+:?~!$&'()*+,;=" |
nothing calls this directly
no test coverage detected