Added test for blocked.json hosts
This commit is contained in:
parent
c6271ac7b6
commit
d27d048d7a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user