Home
last modified time | relevance | path

Searched refs:applies_to (Results 1 – 6 of 6) sorted by relevance

/external/python/httplib2/tests/
Dtest_proxy.py65 assert not pi.applies_to("localhost")
66 assert pi.applies_to("www.google.com")
67 assert pi.applies_to("prefixlocalhost")
68 assert pi.applies_to("www.example.com")
69 assert pi.applies_to("sub.example.com")
70 assert not pi.applies_to("sub.wildcard")
71 assert not pi.applies_to("pub.sub.wildcard")
78 assert not pi.applies_to("localhost")
79 assert not pi.applies_to("other.host")
80 assert pi.applies_to("example.domain")
[all …]
/external/python/cpython3/Lib/urllib/
Drobotparser.py168 if entry.applies_to(useragent):
180 if entry.applies_to(useragent):
188 if entry.applies_to(useragent):
210 def applies_to(self, filename): member in RuleLine
238 def applies_to(self, useragent): member in Entry
256 if line.applies_to(filename):
/external/python/cpython2/Lib/
Drobotparser.py153 if entry.applies_to(useragent):
180 def applies_to(self, filename): member in RuleLine
201 def applies_to(self, useragent): member in Entry
219 if line.applies_to(filename):
/external/python/httplib2/python2/
Dhttplib2test.py1967 self.assertFalse(pi.applies_to("localhost"))
1968 self.assertTrue(pi.applies_to("www.google.com"))
1969 self.assertFalse(pi.applies_to("www.example.com"))
1976 self.assertFalse(pi.applies_to(host))
/external/python/httplib2/python2/httplib2/
D__init__.py1043 def applies_to(self, hostname): member in ProxyInfo
2184 if hasattr(proxy_info, "applies_to") and not proxy_info.applies_to(hostname):
/external/python/httplib2/python3/httplib2/
D__init__.py1013 def applies_to(self, hostname): member in ProxyInfo