def test_cidr_parses(self): self.assertEquals(cidr_from_user('192.168.1.0/24'), '192.168.1.0/24')
def _from_request_impl(self, value): return cidr_from_user(value, on_error=self._illegal_element)
def from_argument(self, value): return cidr_from_user(value, on_error=self._illegal_argument)
def test_cidr_parses(self): self.assertEquals(cidr_from_user("192.168.1.0/24"), "192.168.1.0/24")