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.py15 reach, is_HDN, domain_match, user_domain_match, request_path,
826 self.assertTrue(user_domain_match("acme.com", "acme.com"))
827 self.assertFalse(user_domain_match("acme.com", ".acme.com"))
828 self.assertTrue(user_domain_match("rhubarb.acme.com", ".acme.com"))
829 self.assertTrue(user_domain_match("www.rhubarb.acme.com", ".acme.com"))
830 self.assertTrue(user_domain_match("x.y.com", "x.Y.com"))
831 self.assertTrue(user_domain_match("x.y.com", ".Y.com"))
832 self.assertFalse(user_domain_match("x.y.com", "Y.com"))
833 self.assertTrue(user_domain_match("y.com", "Y.com"))
834 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.py592 def user_domain_match(A, B): function
921 if user_domain_match(domain, blocked_domain):
938 if user_domain_match(domain, allowed_domain):