(self)
| 429 | |
| 430 | class 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 | |
| 441 | class ParseHeaderParameterTests(unittest.TestCase): |
nothing calls this directly
no test coverage detected