MCPcopy Index your code
hub / github.com/python/cpython / test_uri_substitutions

Method test_uri_substitutions

Lib/test/test_dbm_sqlite3.py:38–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36class 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):

Callers

nothing calls this directly

Calls 3

_normalize_uriFunction · 0.90
assertEndsWithMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected