Home
last modified time | relevance | path

Searched refs:_is_valid_netmask (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_ipaddress.py1049 self.assertTrue(ipv4_zero_netmask._is_valid_netmask('0'))
1050 self.assertTrue(ipv4_zero_netmask._is_valid_netmask('0.0.0.0'))
1051 self.assertFalse(ipv4_zero_netmask._is_valid_netmask('invalid'))
1059 self.assertFalse(net._is_valid_netmask('invalid'))
1060 self.assertTrue(net._is_valid_netmask('128.128.128.128'))
1061 self.assertFalse(net._is_valid_netmask('128.128.128.127'))
1062 self.assertFalse(net._is_valid_netmask('128.128.128.255'))
1063 self.assertTrue(net._is_valid_netmask('255.128.128.128'))
/external/python/cpython3/Lib/
Dipaddress.py1192 def _is_valid_netmask(self, netmask): member in _BaseV4