forked from p15670423/monkey
UT: Rename test_control_find_server_any_exception -> test_control_find_server__no_available_relays
This commit is contained in:
parent
a39917d9aa
commit
f847757a9a
|
@ -43,14 +43,12 @@ def test_control_set_proxies(monkeypatch, is_windows_os, expected_proxy_string):
|
||||||
assert control_client.proxies["https"] == expected_proxy_string
|
assert control_client.proxies["https"] == expected_proxy_string
|
||||||
|
|
||||||
|
|
||||||
def test_control_find_server_any_exception(monkeypatch, servers):
|
def test_control_find_server__no_available_relays(monkeypatch, servers):
|
||||||
monkeypatch.setattr("infection_monkey.control.requests.get", MockConnectionError)
|
monkeypatch.setattr("infection_monkey.control.requests.get", MockConnectionError)
|
||||||
|
|
||||||
cc = ControlClient(servers)
|
cc = ControlClient(servers)
|
||||||
|
|
||||||
return_value = cc.find_server(servers)
|
assert cc.find_server(servers) is False
|
||||||
|
|
||||||
assert return_value is False
|
|
||||||
assert servers == []
|
assert servers == []
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue