Skip to content
Snippets Groups Projects
Commit c6ccea90 authored by Stuart Gathman's avatar Stuart Gathman
Browse files

Fix exception test case

parent eea110d1
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,9 @@ def iniplist(ipaddr,iplist): ...@@ -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)
......
[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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment