Beispiel #1
0
 def test_exception(self, value, expected):
     with pytest.raises(expected):
         sanitize_network(value)
Beispiel #2
0
 def test_normal(self, value, expected):
     assert sanitize_network(value) == expected
Beispiel #3
0
 def test_normal(self, value, expected):
     assert sanitize_network(value) == expected
Beispiel #4
0
 def test_exception(self, value, expected):
     with pytest.raises(expected):
         sanitize_network(value)
Beispiel #5
0
 def test_normal(self, value, ip_version, expected):
     assert sanitize_network(value, ip_version) == expected