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