Update tests
This commit is contained in:
parent
c7a9931561
commit
104eb8d949
@ -17,7 +17,8 @@ def start_web_server():
|
||||
def test_fetch_list():
|
||||
expected = ['127.0.0.1:9000', '127.0.0.1:9001', 'username:pa$$@word@127.0.0.1:9002']
|
||||
result = fetch_list('http://localhost:8888/proxies1.txt')
|
||||
assert result == expected
|
||||
for proxy in expected:
|
||||
assert proxy in result
|
||||
|
||||
|
||||
def test_fetch_list_fail():
|
||||
@ -29,7 +30,8 @@ def test_fetch_list_fail():
|
||||
def test_fetch_list_only_valid():
|
||||
expected = ['127.0.0.1:9000', '127.0.0.1:9001', 'username:pa$$@word@127.0.0.1:9002']
|
||||
result = fetch_list('http://localhost:8888/proxies1.txt')
|
||||
assert result == expected
|
||||
for proxy in expected:
|
||||
assert proxy in result
|
||||
|
||||
|
||||
def test_fetch_all():
|
||||
|
Loading…
Reference in New Issue
Block a user