diff options
author | Jan Cholasta <jcholast@redhat.com> | 2012-03-19 08:52:11 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-03-27 12:03:16 +0200 |
commit | 0024024897153d23ae446415612b7529ffb67fe2 (patch) | |
tree | 4d05305fb82530714c36cc76eaaaeedc0327d073 /tests/test_ipapython/test_ipautil.py | |
parent | 52aa008b8719f4ea678efa8957794bb6dcd13893 (diff) | |
download | freeipa-0024024897153d23ae446415612b7529ffb67fe2.tar.gz freeipa-0024024897153d23ae446415612b7529ffb67fe2.tar.xz freeipa-0024024897153d23ae446415612b7529ffb67fe2.zip |
Parse zone indices in IPv6 addresses in CheckedIPAddress.
If a zone index is present in an IPv6 address, it is ignored.
ticket 2138
Diffstat (limited to 'tests/test_ipapython/test_ipautil.py')
-rw-r--r-- | tests/test_ipapython/test_ipautil.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_ipapython/test_ipautil.py b/tests/test_ipapython/test_ipautil.py index 68391c2e1..650e1ce95 100644 --- a/tests/test_ipapython/test_ipautil.py +++ b/tests/test_ipapython/test_ipautil.py @@ -39,6 +39,8 @@ def test_ip_address(): addrs = [ ('10.11.12.13', (10, 11, 12, 13), 8), ('10.11.12.13/14', (10, 11, 12, 13), 14), + ('10.11.12.13%zoneid',), + ('10.11.12.13%zoneid/14',), ('10.11.12.1337',), ('10.11.12.13/33',), ('127.0.0.1',), @@ -50,6 +52,8 @@ def test_ip_address(): ('2001::1', (0x2001, 0, 0, 0, 0, 0, 0, 1), 64), ('2001::1/72', (0x2001, 0, 0, 0, 0, 0, 0, 1), 72), + ('2001::1%zoneid', (0x2001, 0, 0, 0, 0, 0, 0, 1), 64), + ('2001::1%zoneid/72',), ('2001::1beef',), ('2001::1/129',), ('::1',), |