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