Example #1
0
 def test_check_ip_neg(self):
     self.assertFalse(
         dig.check_ip('-127.0.0.1'),
         msg="Did not detect negative value as invalid"
     )
Example #2
0
 def test_check_ip_empty(self):
     self.assertFalse(
         dig.check_ip(''),
         msg="Did not detect empty value as invalid"
     )
Example #3
0
 def test_check_ip_ipv6(self):
     self.assertTrue(
         dig.check_ip('1111:2222:3333:4444:5555:6666:7777:8888'),
         msg='Not a valid ip address'
     )
Example #4
0
 def test_check_ip_ipv6_valid(self):
     self.assertTrue(dig.check_ip('2607:fa18:0:3::4'))
Example #5
0
 def test_check_ip_neg(self):
     self.assertFalse(dig.check_ip('-127.0.0.1'),
                      msg="Did not detect negative value as invalid")
Example #6
0
 def test_check_ip(self):
     self.assertTrue(dig.check_ip('127.0.0.1'), msg='Not a valid ip address')
Example #7
0
 def test_check_ip_ipv6_valid(self):
     self.assertTrue(dig.check_ip('2607:fa18:0:3::4'))
Example #8
0
 def test_check_ip_ipv6(self):
     self.assertTrue(
         dig.check_ip('1111:2222:3333:4444:5555:6666:7777:8888'),
         msg='Not a valid ip address')
Example #9
0
 def test_check_ip(self):
     self.assertTrue(dig.check_ip('127.0.0.1'),
                     msg='Not a valid ip address')
Example #10
0
 def test_check_ip_empty(self):
     self.assertFalse(dig.check_ip(''),
                      msg="Did not detect empty value as invalid")
Example #11
0
 def test_check_ip(self):
     self.assertTrue(dig.check_ip("127.0.0.1"),
                     msg="Not a valid ip address")