(self)
| 36 | class URI(unittest.TestCase): |
| 37 | |
| 38 | def test_uri_substitutions(self): |
| 39 | dataset = ( |
| 40 | ("/absolute/////b/c", "/absolute/b/c"), |
| 41 | ("PRE#MID##END", "PRE%23MID%23%23END"), |
| 42 | ("%#?%%#", "%25%23%3F%25%25%23"), |
| 43 | ) |
| 44 | for path, normalized in dataset: |
| 45 | with self.subTest(path=path, normalized=normalized): |
| 46 | self.assertEndsWith(_normalize_uri(path), normalized) |
| 47 | |
| 48 | @unittest.skipUnless(sys.platform == "win32", "requires Windows") |
| 49 | def test_uri_windows(self): |
nothing calls this directly
no test coverage detected