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

Method test_reach

Lib/test/test_http_cookiejar.py:869–877  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

867 self.assertFalse(is_HDN("foo."))
868
869 def test_reach(self):
870 self.assertEqual(reach("www.acme.com"), ".acme.com")
871 self.assertEqual(reach("acme.com"), "acme.com")
872 self.assertEqual(reach("acme.local"), ".local")
873 self.assertEqual(reach(".local"), ".local")
874 self.assertEqual(reach(".com"), ".com")
875 self.assertEqual(reach("."), ".")
876 self.assertEqual(reach(""), "")
877 self.assertEqual(reach("192.168.0.1"), "192.168.0.1")
878
879 def test_domain_match(self):
880 self.assertTrue(domain_match("192.168.1.1", "192.168.1.1"))

Callers

nothing calls this directly

Calls 2

reachFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected