Files
supervisor/tests/dbus/network/test_utils.py
Joakim Sørensen 9bcb15dbc0 MVP: Add Network Manager context (#1937)
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-08-24 16:58:02 +02:00

13 lines
261 B
Python

"""Test network utils."""
from supervisor.dbus.network.utils import int2ip, ip2int
def test_int2ip():
"""Test int2ip."""
assert int2ip(16885952) == "192.168.1.1"
def test_ip2int():
"""Test ip2int."""
assert ip2int("192.168.1.1") == 16885952