def test_valids(self): """ Tests that the output of the validate_dutchmobilephone function has the expected result """ for number, expected_result in self.valid_numbers: self.failUnlessEqual(validate_dutchmobilephone(number), expected_result)
def clean(self, value): return validate_dutchmobilephone(value, self.error_messages['invalid_phonenumber'])
def clean(self, value): return validate_dutchmobilephone( value, self.error_messages['invalid_phonenumber'])