Esempio n. 1
0
 def test_check_cannot_change_credit_card(self):
     """Verify that we cannot change the credit card once manipulated."""
     c = CreditCard('visa', '1234123412341234', '01', '2018', '000', 'John', 'Smith')
     with self.assertRaises(AttributeError):
         c.expire_year = 2