Home
last modified time | relevance | path

Searched refs:is_HDN (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_cookielib.py683 from cookielib import is_HDN
684 self.assertTrue(is_HDN("foo.bar.com"))
685 self.assertTrue(is_HDN("1foo2.3bar4.5com"))
686 self.assertFalse(is_HDN("192.168.1.1"))
687 self.assertFalse(is_HDN(""))
688 self.assertFalse(is_HDN("."))
689 self.assertFalse(is_HDN(".foo.bar.com"))
690 self.assertFalse(is_HDN("..foo"))
691 self.assertFalse(is_HDN("foo."))
/external/python/cpython3/Lib/test/
Dtest_http_cookiejar.py15 reach, is_HDN, domain_match, user_domain_match, request_path,
794 self.assertTrue(is_HDN("foo.bar.com"))
795 self.assertTrue(is_HDN("1foo2.3bar4.5com"))
796 self.assertFalse(is_HDN("192.168.1.1"))
797 self.assertFalse(is_HDN(""))
798 self.assertFalse(is_HDN("."))
799 self.assertFalse(is_HDN(".foo.bar.com"))
800 self.assertFalse(is_HDN("..foo"))
801 self.assertFalse(is_HDN("foo."))
/external/python/cpython2/Lib/
Dcookielib.py513 def is_HDN(text): function
555 if not is_HDN(A):
563 if not is_HDN(B[1:]):
702 if is_HDN(h) and (i >= 0 or b == "local"):
/external/python/cpython3/Lib/http/
Dcookiejar.py528 def is_HDN(text): function
570 if not is_HDN(A):
578 if not is_HDN(B[1:]):
715 if is_HDN(h) and (i >= 0 or b == "local"):