Get it working!

This commit is contained in:
2025-03-30 01:37:39 +01:00
parent e92994d2f3
commit a210b47e36
13 changed files with 270 additions and 9 deletions

8
tests/openec2/test_ip.py Normal file
View 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