Beispiel #1
0
 def test_ip_check_valid_ip_is_true(self):
     self.assertTrue(hostmac.ip_check(input_ip="192.168.1.1"))
Beispiel #2
0
 def test_ip_check_invalid_ip_is_false(self):
     self.assertFalse(hostmac.ip_check(input_ip="foo"))
     self.assertFalse(hostmac.ip_check(input_ip="192.168.1.256"))
Beispiel #3
0
 def test_ip_check_returns_bool(self):
     self.assertEqual(bool, type(hostmac.ip_check(input_ip="192.168.1.1")))