diff options
author | Daniel Harrison <harro@google.com> | 2010-10-04 23:20:04 +0000 |
---|---|---|
committer | Daniel Harrison <harro@google.com> | 2010-10-04 23:20:04 +0000 |
commit | 83e7e09c37e0d1cd03bfe4147cd7bd1f21224056 (patch) | |
tree | b9ac219ab37d2f926ef50e30fa2cd3a98674fd06 /ipaddr_test.py | |
parent | f109f0be7233c4cae807cce0de3f2b4b4cbbc125 (diff) | |
download | ipaddr-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-x | ipaddr_test.py | 4 |
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')) |