From cc2ca82a33bd4f4bccd1865cbf07debb182e5727 Mon Sep 17 00:00:00 2001 From: ilya Date: Sat, 29 Jun 2024 22:10:45 +0300 Subject: [PATCH] Extend tests for ipv6. Two tests failed, problems was described. Hope it helps fix this issues (will try to fix it myself). https://github.com/tehmaze/ipcalc/issues/67 https://github.com/tehmaze/ipcalc/issues/68 --- test.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.py b/test.py index d617363..b0cc126 100644 --- a/test.py +++ b/test.py @@ -188,6 +188,12 @@ def test_ipv6_9(self): self.assertTrue(net.subnet() == 115) self.assertTrue(net.version() == 6) + def test_ipv6_10(self): + net = Network('0::1.2.3.4', 99) + self.assertTrue(str(net) == '0000:0000:0000:0000:0000:0000:0102:0304/99') + self.assertTrue(net.subnet() == 115) + self.assertTrue(net.version() == 6) + class TestIP(unittest.TestCase):