Beispiel #1
0
 def test_refund_transaction_fail(self):
     transaction = Transaction(api_key='apikey')
     transaction.find_by_id(314)
     with self.assertRaises(PygarmeTransactionApiError):
         transaction.refund()
Beispiel #2
0
 def test_refund_transaction_before_set_id(self):
     transaction = Transaction(api_key='apikey')
     with self.assertRaises(NotPaidException):
         transaction.refund()
Beispiel #3
0
 def test_refund_transaction(self):
     transaction = Transaction(api_key='apikey')
     transaction.find_by_id(314)
     transaction.refund()
     self.assertEqual('refunded', transaction.status)
Beispiel #4
0
 def test_refund_transaction_fail(self):
     transaction = Transaction(api_key='apikey')
     transaction.find_by_id(314)
     with self.assertRaises(PygarmeTransactionApiError):
         transaction.refund()
Beispiel #5
0
 def test_refund_transaction_before_set_id(self):
     transaction = Transaction(api_key='apikey')
     with self.assertRaises(NotPaidException):
         transaction.refund()
Beispiel #6
0
 def test_refund_transaction(self):
     transaction = Transaction(api_key='apikey')
     transaction.find_by_id(314)
     transaction.refund()
     self.assertEqual('refunded', transaction.status)