Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def clean(self, value):
     return validate_dutchmobilephone(value, self.error_messages['invalid_phonenumber'])
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 def clean(self, value):
     return validate_dutchmobilephone(
         value, self.error_messages['invalid_phonenumber'])