9 lines
286 B
Python
9 lines
286 B
Python
from netinf import get_network_info
|
|
|
|
def test_network_info_contains_expected_keys():
|
|
data = get_network_info(debug=False)
|
|
assert isinstance(data, dict)
|
|
|
|
for key in ["hostname", "ip_address", "interfaces", "gateway", "dns_servers", "connections"]:
|
|
assert key in data
|