MCPcopy
hub / github.com/django/django / test_bad

Method test_bad

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

Source from the content-addressed store, hash-verified

312 self.assertIs(is_same_domain(*pair), True)
313
314 def test_bad(self):
315 for pair in (
316 ("example2.com", "example.com"),
317 ("foo.example.com", "example.com"),
318 ("example.com:9999", "example.com:8888"),
319 ("foo.example.com:8888", ""),
320 ):
321 self.assertIs(is_same_domain(*pair), False)
322
323
324class ETagProcessingTests(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

is_same_domainFunction · 0.90

Tested by

no test coverage detected