summaryrefslogtreecommitdiff
path: root/ipaddr_test.py
diff options
context:
space:
mode:
authorPeter Moody <pmoody@google.com>2011-11-29 01:21:23 +0000
committerPeter Moody <pmoody@google.com>2011-11-29 01:21:23 +0000
commita054c3823522f2cb77fffa0e31f8f29c50060601 (patch)
tree1557355e05ecdee2c5d00a6d1e3c6483f8316378 /ipaddr_test.py
parentdfa1b947b65a28f96b179742de26b301d04b5210 (diff)
downloadipaddr-py-a054c3823522f2cb77fffa0e31f8f29c50060601.tar.gz
fix
git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@237 09200d28-7f98-11dd-ad27-0f66e57d2035
Diffstat (limited to 'ipaddr_test.py')
-rwxr-xr-xipaddr_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipaddr_test.py b/ipaddr_test.py
index 47345db..9446889 100755
--- a/ipaddr_test.py
+++ b/ipaddr_test.py
@@ -967,9 +967,9 @@ class IpaddrUnitTest(unittest.TestCase):
def testExplodeShortHandIpStr(self):
addr1 = ipaddr.IPv6Network('2001::1')
addr2 = ipaddr.IPv6Address('2001:0:5ef5:79fd:0:59d:a0e5:ba1')
- self.assertEqual('2001:0000:0000:0000:0000:0000:0000:0001',
- addr1._explode_shorthand_ip_string(str(addr1.ip)))
- self.assertEqual('0000:0000:0000:0000:0000:0000:0000:0001',
+ self.assertEqual('2001:0000:0000:0000:0000:0000:0000:0001/128',
+ addr1.exploded)
+ self.assertEqual('0000:0000:0000:0000:0000:0000:0000:0001/128',
ipaddr.IPv6Network('::1/128').exploded)
# issue 77
self.assertEqual('2001:0000:5ef5:79fd:0000:059d:a0e5:0ba1',