def test_delete_transaction_between(self): test = Transaction.delete_transaction_between(sender_id=2, receiver_id=3) self.assertEqual(test[0], 2) test = Transaction.get_transaction_between(sender_id=2, receiver_id=3) self.assertEqual(test.count(), 0)
def test_transaction_get_transaction_between(self): test = Transaction.get_transaction_between(sender_id=2, receiver_id=3) self.assertEqual(len(test), 2) for transaction in test: self.assertEqual(transaction['Amount'], 10.00)