diff options
author | Peter Moody <pmoody@google.com> | 2010-04-29 17:15:43 +0000 |
---|---|---|
committer | Peter Moody <pmoody@google.com> | 2010-04-29 17:15:43 +0000 |
commit | 60eb261c7f67c6a91dc213bd680dd01d0b075510 (patch) | |
tree | 6194886f4e98a4f2ea778eb542c1913e4db24182 /ipaddr_test.py | |
parent | a8992e0b0c9793e227c9955437cf3ed09be01424 (diff) | |
download | ipaddr-py-60eb261c7f67c6a91dc213bd680dd01d0b075510.tar.gz |
+ one more address_exclude cleanup, to make sure network/address exclusions
fail as expected.
git-svn-id: https://ipaddr-py.googlecode.com/svn/trunk@163 09200d28-7f98-11dd-ad27-0f66e57d2035
Diffstat (limited to 'ipaddr_test.py')
-rwxr-xr-x | ipaddr_test.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipaddr_test.py b/ipaddr_test.py index 04cf8d9..8d14940 100755 --- a/ipaddr_test.py +++ b/ipaddr_test.py @@ -788,10 +788,12 @@ class IpaddrUnitTest(unittest.TestCase): addr1 = ipaddr.IPNetwork('10.1.1.0/24') addr2 = ipaddr.IPNetwork('10.1.1.0/26') addr3 = ipaddr.IPNetwork('10.2.1.0/24') + addr4 = ipaddr.IPAddress('10.1.1.0') self.assertEqual(addr1.address_exclude(addr2), [ipaddr.IPNetwork('10.1.1.64/26'), ipaddr.IPNetwork('10.1.1.128/25')]) self.assertRaises(ValueError, addr1.address_exclude, addr3) + self.assertRaises(TypeError, addr1.address_exclude, addr4) self.assertEqual(addr1.address_exclude(addr1), []) def testHash(self): |