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)
def clean(self, value): return validate_dutchbanknumber(value)