Example #1
0
 def test_valids(self):
     """
         Tests that the output of the validate_dutchbanknumber function has the expected result
     """
     for number, expected_result in self.valid_numbers:
         self.failUnlessEqual(validate_dutchbanknumber(number),
                              expected_result)
Example #2
0
 def clean(self, value):
     return validate_dutchbanknumber(value)
Example #3
0
 def test_valids(self):
     """
         Tests that the output of the validate_dutchbanknumber function has the expected result
     """
     for number, expected_result in self.valid_numbers:
         self.failUnlessEqual(validate_dutchbanknumber(number), expected_result)
Example #4
0
 def clean(self, value):
     return validate_dutchbanknumber(value)