MCPcopy
hub / github.com/django/django / test_good

Method test_good

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

Source from the content-addressed store, hash-verified

301
302class IsSameDomainTests(unittest.TestCase):
303 def test_good(self):
304 for pair in (
305 ("example.com", "example.com"),
306 ("example.com", ".example.com"),
307 ("foo.example.com", ".example.com"),
308 ("example.com:8888", "example.com:8888"),
309 ("example.com:8888", ".example.com:8888"),
310 ("foo.example.com:8888", ".example.com:8888"),
311 ):
312 self.assertIs(is_same_domain(*pair), True)
313
314 def test_bad(self):
315 for pair in (

Callers

nothing calls this directly

Calls 1

is_same_domainFunction · 0.90

Tested by

no test coverage detected