Fix exception test case

This commit is contained in:
Stuart Gathman
2011-03-03 05:58:50 +00:00
parent eea110d120
commit c6ccea9099
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -65,7 +65,9 @@ def iniplist(ipaddr,iplist):
>>> iniplist('2001:610:779:0:223:6cff:fe9a:9cf3',['127.0.0.1','172.20.1.0/24','2001:610:779::/48']) >>> iniplist('2001:610:779:0:223:6cff:fe9a:9cf3',['127.0.0.1','172.20.1.0/24','2001:610:779::/48'])
True True
>>> iniplist('2G01:610:779:0:223:6cff:fe9a:9cf3',['127.0.0.1','172.20.1.0/24','2001:610:779::/48']) >>> iniplist('2G01:610:779:0:223:6cff:fe9a:9cf3',['127.0.0.1','172.20.1.0/24','2001:610:779::/48'])
True Traceback (most recent call last):
...
ValueError: Invalid ip syntax:2G01:610:779:0:223:6cff:fe9a:9cf3
""" """
if ip4re.match(ipaddr): if ip4re.match(ipaddr):
ipnum = addr2bin(ipaddr) ipnum = addr2bin(ipaddr)
+1 -1
View File
@@ -1,5 +1,5 @@
[bdist_rpm] [bdist_rpm]
python=python2.4 python=python2.6
doc_files=README NEWS TODO doc_files=README NEWS TODO
packager=Stuart D. Gathman <stuart@bmsi.com> packager=Stuart D. Gathman <stuart@bmsi.com>
release=1 release=1