def test_pay_transaction_add(self): transaction = PayTransaction(90) transaction.add(10) self.assertEqual(transaction.change(), -100)
def test_pay_transaction_change_neg(self): transaction = PayTransaction(100) self.assertEqual(transaction.change(), -100)