Searched refs:applies_to (Results 1 – 6 of 6) sorted by relevance
65 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 …]
168 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 RuleLine238 def applies_to(self, useragent): member in Entry256 if line.applies_to(filename):
153 if entry.applies_to(useragent):180 def applies_to(self, filename): member in RuleLine201 def applies_to(self, useragent): member in Entry219 if line.applies_to(filename):
1967 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))
1043 def applies_to(self, hostname): member in ProxyInfo2184 if hasattr(proxy_info, "applies_to") and not proxy_info.applies_to(hostname):
1013 def applies_to(self, hostname): member in ProxyInfo