Added test for blocked.json hosts

This commit is contained in:
Jacob Windle 2019-02-13 16:26:05 -05:00
parent c6271ac7b6
commit d27d048d7a

View File

@ -13,3 +13,7 @@ def test_proxy_block_page():
requests.get("http://httpbin.org", proxies={"http": http_proxy})
assert requests.get("http://httpbin.org", proxies={"http": http_proxy}).status_code == 403
def test_blocked_file():
resp = requests.get("http://wikipedia.org", proxies={"http": http_proxy})
assert resp.status_code == 403