Exemple #1
0
 def test_get_all_transaction_fails(self):
     pagarme = Pygarme(self.api_key)
     with self.assertRaises(PygarmeApiError):
         transactions = pagarme.all_transactions(page=2,count=3)
Exemple #2
0
 def test_get_all_transaction(self):
     pagarme = Pygarme(self.api_key)
     transactions = pagarme.all_transactions(page=2,count=3)
     self.assertTrue(len(transactions) == 1)