MCPcopy
hub / github.com/django/django / test

Method test

tests/utils_tests/test_http.py:431–438  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

429
430class EscapeLeadingSlashesTests(unittest.TestCase):
431 def test(self):
432 tests = (
433 ("//example.com", "/%2Fexample.com"),
434 ("//", "/%2F"),
435 )
436 for url, expected in tests:
437 with self.subTest(url=url):
438 self.assertEqual(escape_leading_slashes(url), expected)
439
440
441class ParseHeaderParameterTests(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

escape_leading_slashesFunction · 0.90

Tested by

no test coverage detected