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)
def test_validate_card_num_valid(self): """ Test that form can validate credit card number """ result = validate_card_number('4111111111111111') self.assertTrue(result)