Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_cookielib.py705 from cookielib import domain_match, user_domain_match
718 self.assertTrue(user_domain_match("acme.com", "acme.com"))
719 self.assertFalse(user_domain_match("acme.com", ".acme.com"))
720 self.assertTrue(user_domain_match("rhubarb.acme.com", ".acme.com"))
721 self.assertTrue(user_domain_match("www.rhubarb.acme.com", ".acme.com"))
722 self.assertTrue(user_domain_match("x.y.com", "x.Y.com"))
723 self.assertTrue(user_domain_match("x.y.com", ".Y.com"))
724 self.assertFalse(user_domain_match("x.y.com", "Y.com"))
725 self.assertTrue(user_domain_match("y.com", "Y.com"))
726 self.assertFalse(user_domain_match(".y.com", "Y.com"))
[all …]
/external/python/cpython3/Lib/test/
Dtest_http_cookiejar.py14 reach, is_HDN, domain_match, user_domain_match, request_path,
779 self.assertTrue(user_domain_match("acme.com", "acme.com"))
780 self.assertFalse(user_domain_match("acme.com", ".acme.com"))
781 self.assertTrue(user_domain_match("rhubarb.acme.com", ".acme.com"))
782 self.assertTrue(user_domain_match("www.rhubarb.acme.com", ".acme.com"))
783 self.assertTrue(user_domain_match("x.y.com", "x.Y.com"))
784 self.assertTrue(user_domain_match("x.y.com", ".Y.com"))
785 self.assertFalse(user_domain_match("x.y.com", "Y.com"))
786 self.assertTrue(user_domain_match("y.com", "Y.com"))
787 self.assertFalse(user_domain_match(".y.com", "Y.com"))
[all …]
/external/python/cpython2/Lib/
Dcookielib.py577 def user_domain_match(A, B): function
906 if user_domain_match(domain, blocked_domain):
923 if user_domain_match(domain, allowed_domain):
/external/python/cpython3/Lib/http/
Dcookiejar.py585 def user_domain_match(A, B): function
912 if user_domain_match(domain, blocked_domain):
929 if user_domain_match(domain, allowed_domain):