コード例 #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)
コード例 #2
0
ファイル: fields.py プロジェクト: openstate/Wiekiesjij
 def clean(self, value):
     return validate_dutchmobilephone(value, self.error_messages['invalid_phonenumber'])
コード例 #3
0
ファイル: tests.py プロジェクト: openstate/Wiekiesjij
 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)
コード例 #4
0
ファイル: fields.py プロジェクト: openstate/Wiekiesjij
 def clean(self, value):
     return validate_dutchmobilephone(
         value, self.error_messages['invalid_phonenumber'])