Skip to content

Commit

Permalink
Extend tests for ipv6. Two tests failed, problems was described. Hope…
Browse files Browse the repository at this point in the history
… it helps fix this issues (will try to fix it myself).

tehmaze#67
tehmaze#68
  • Loading branch information
bazhil committed Jun 29, 2024
1 parent 7ef37da commit cc2ca82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down

0 comments on commit cc2ca82

Please sign in to comment.