CheckedIPAddress: remove match_local param

This parameter is unused in code. We are no longer testing if IP address
matches an interface in constructor.

https://pagure.io/freeipa/issue/4317

Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
Martin Basti
2017-06-14 14:54:43 +02:00
committed by David Kupka
parent 0b69e44f16
commit 6024165101
6 changed files with 9 additions and 18 deletions

View File

@@ -64,9 +64,9 @@ pytestmark = pytest.mark.tier0
def test_ip_address(addr, words, prefixlen):
if words is None:
pytest.raises(
ValueError, ipautil.CheckedIPAddress, addr, match_local=False)
ValueError, ipautil.CheckedIPAddress, addr)
else:
ip = ipautil.CheckedIPAddress(addr, match_local=False)
ip = ipautil.CheckedIPAddress(addr)
assert ip.words == words
assert ip.prefixlen == prefixlen