Get it working!
This commit is contained in:
8
tests/openec2/test_ip.py
Normal file
8
tests/openec2/test_ip.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from openec2.utils.ip import ipv4_to_int, int_to_ipv4
|
||||
|
||||
|
||||
def test_idempotent():
|
||||
ip = "127.0.0.1"
|
||||
ip_int = ipv4_to_int(ip)
|
||||
print(ip_int)
|
||||
assert int_to_ipv4(ip_int) == ip
|
||||
Reference in New Issue
Block a user