summaryrefslogtreecommitdiff
path: root/ipaddr_test.py
diff options
context:
space:
mode:
authorDaniel Harrison <harro@google.com>2010-10-04 23:20:04 +0000
committerDaniel Harrison <harro@google.com>2010-10-04 23:20:04 +0000
commit83e7e09c37e0d1cd03bfe4147cd7bd1f21224056 (patch)
treeb9ac219ab37d2f926ef50e30fa2cd3a98674fd06 /ipaddr_test.py
parentf109f0be7233c4cae807cce0de3f2b4b4cbbc125 (diff)
downloadipaddr-py-83e7e09c37e0d1cd03bfe4147cd7bd1f21224056.tar.gz
r176 added constants without adding corresponding testcases
git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@193 09200d28-7f98-11dd-ad27-0f66e57d2035
Diffstat (limited to 'ipaddr_test.py')
-rwxr-xr-xipaddr_test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipaddr_test.py b/ipaddr_test.py
index c0d3886..efc52ca 100755
--- a/ipaddr_test.py
+++ b/ipaddr_test.py
@@ -659,6 +659,10 @@ class IpaddrUnitTest(unittest.TestCase):
self.assertEqual(self.ipv4.version, 4)
self.assertEqual(self.ipv6.version, 6)
+ def testMaxPrefixLength(self):
+ self.assertEqual(self.ipv4.max_prefixlen, 32)
+ self.assertEqual(self.ipv6.max_prefixlen, 128)
+
def testPacked(self):
self.assertEqual(self.ipv4.packed,
_cb('\x01\x02\x03\x04'))