Esempio n. 1
0
 def test_is_ipv4_address(self):
     self.assertTrue(restutil.is_ipv4_address('8.8.8.8'))
     self.assertFalse(restutil.is_ipv4_address('localhost.localdomain'))
     self.assertFalse(restutil.is_ipv4_address('2001:4860:4860::8888')) # ipv6 tests
Esempio n. 2
0
 def test_is_ipv4_address(self):
     self.assertTrue(restutil.is_ipv4_address('8.8.8.8'))
     self.assertFalse(restutil.is_ipv4_address('localhost.localdomain'))
     self.assertFalse(
         restutil.is_ipv4_address('2001:4860:4860::8888'))  # ipv6 tests