Esempio n. 1
0
 def test_validate_card_num_invalid(self):
     """
     Test that form can rise error when credit card number wrong
     """
     result = validate_card_number('41414141414141444')
     self.assertFalse(result)
Esempio n. 2
0
 def test_validate_card_num_valid(self):
     """
     Test that form can validate credit card number
     """
     result = validate_card_number('4111111111111111')
     self.assertTrue(result)