in_network's consistency now verify that IP is not network or broadcast's IP + ip_netmask's consistency now verify that IP is not broadcast's IP
This commit is contained in:
@ -198,6 +198,7 @@ def test_consistency_ip_netmask():
|
||||
c.b = '255.255.255.255'
|
||||
c.b = '255.255.255.0'
|
||||
raises(ValueError, "c.a = '192.168.1.0'")
|
||||
raises(ValueError, "c.a = '192.168.1.255'")
|
||||
|
||||
|
||||
def test_consistency_network_netmask():
|
||||
@ -225,6 +226,8 @@ def test_consistency_ip_in_network():
|
||||
cfg.b = '255.255.255.0'
|
||||
cfg.c = '192.168.1.1'
|
||||
raises(ValueError, "cfg.c = '192.168.2.1'")
|
||||
raises(ValueError, "cfg.c = '192.168.1.0'")
|
||||
raises(ValueError, "cfg.c = '192.168.1.255'")
|
||||
|
||||
|
||||
def test_consistency_ip_in_network_len_error():
|
||||
|
Reference in New Issue
Block a user