def test_parse_single_value(self, pac_value, expected_result): assert parse_pac_value(pac_value) == [expected_result] assert proxy_url(pac_value) == expected_result
def test_single_pac_value(pac_value): res = _get_resolver(pac_value) assert res.get_proxies(arbitrary_url) == [proxy_url(pac_value)] assert res.get_proxy(arbitrary_url) == proxy_url(pac_value)