sicherheitsupdate
This commit is contained in:
8
tests/test_netinf.py
Normal file
8
tests/test_netinf.py
Normal file
@ -0,0 +1,8 @@
|
||||
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
|
||||
Reference in New Issue
Block a user