mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix tests. We no longer get ipaddress
instances back.
This commit is contained in:
parent
345aa5bd4a
commit
344bf6567a
@ -206,12 +206,12 @@ class NetworkTestCase(TestCase):
|
|||||||
def test_parse_host_port(self):
|
def test_parse_host_port(self):
|
||||||
_ip = ipaddress.ip_address
|
_ip = ipaddress.ip_address
|
||||||
good_host_ports = {
|
good_host_ports = {
|
||||||
'10.10.0.3': (_ip('10.10.0.3'), None),
|
'10.10.0.3': (_ip('10.10.0.3').compressed, None),
|
||||||
'10.10.0.3:1234': (_ip('10.10.0.3'), 1234),
|
'10.10.0.3:1234': (_ip('10.10.0.3').compressed, 1234),
|
||||||
'2001:0db8:85a3::8a2e:0370:7334': (_ip('2001:0db8:85a3::8a2e:0370:7334'), None),
|
'2001:0db8:85a3::8a2e:0370:7334': (_ip('2001:0db8:85a3::8a2e:0370:7334').compressed, None),
|
||||||
'[2001:0db8:85a3::8a2e:0370:7334]:1234': (_ip('2001:0db8:85a3::8a2e:0370:7334'), 1234),
|
'[2001:0db8:85a3::8a2e:0370:7334]:1234': (_ip('2001:0db8:85a3::8a2e:0370:7334').compressed, 1234),
|
||||||
'2001:0db8:85a3::7334': (_ip('2001:0db8:85a3::7334'), None),
|
'2001:0db8:85a3::7334': (_ip('2001:0db8:85a3::7334').compressed, None),
|
||||||
'[2001:0db8:85a3::7334]:1234': (_ip('2001:0db8:85a3::7334'), 1234)
|
'[2001:0db8:85a3::7334]:1234': (_ip('2001:0db8:85a3::7334').compressed, 1234)
|
||||||
}
|
}
|
||||||
bad_host_ports = [
|
bad_host_ports = [
|
||||||
'10.10.0.3/24',
|
'10.10.0.3/24',
|
||||||
|
Loading…
Reference in New Issue
Block a user