Exemple #1
0
 def test_pay_transaction_add(self):
     transaction = PayTransaction(90)
     transaction.add(10)
     self.assertEqual(transaction.change(), -100)
Exemple #2
0
 def test_pay_transaction_change_neg(self):
     transaction = PayTransaction(100)
     self.assertEqual(transaction.change(), -100)