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

@ -12,4 +12,8 @@ def test_proxy_block_page():
for i in range(2):
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