示例#1
0
文件: tests.py 项目: bifft2/ExpOCR
 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)
示例#2
0
文件: tests.py 项目: bifft2/ExpOCR
 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)