Skip to content

Commit

Permalink
Remove duplicate IPv6 private block test in tests_common.py
Browse files Browse the repository at this point in the history
  • Loading branch information
antonrom1 committed Sep 18, 2023
1 parent 60949bf commit ec5bca3
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions ipware/tests/tests_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,3 @@ def test_is_ipv6_private_block(self):
self.assertFalse(util.is_private_ip(ip))
ip = 'fe00::1'
self.assertFalse(util.is_private_ip(ip))


def test_is_ipv6_private_block(self):
ip = 'fc00::1'
self.assertTrue(util.is_private_ip(ip))

ip = 'fd00::1'
self.assertTrue(util.is_private_ip(ip))

# Test an address that is outside the fc00::/7 private block range
ip = 'fb00::1'
self.assertFalse(util.is_private_ip(ip))
ip = 'fe00::1'
self.assertFalse(util.is_private_ip(ip))

0 comments on commit ec5bca3

Please sign in to comment.