Exemplo n.º 1
0
 def test_find_transaction_by_id(self):
     pagarme = Pagarme(self.api_key)
     transaction = pagarme.find_transaction_by_id(314)
     self.assertIsInstance(transaction, Transaction)
Exemplo n.º 2
0
 def test_find_transaction_by_id(self):
     pagarme = Pagarme(self.api_key)
     transaction = pagarme.find_transaction_by_id(314)
     self.assertIsInstance(transaction, Transaction)
Exemplo n.º 3
0
 def test_call_without_api_key(self):
     with self.assertRaises(ValueError):
         Pagarme.find_transaction_by_id(1321)
Exemplo n.º 4
0
 def test_call_without_api_key(self):
     with self.assertRaises(ValueError):
         Pagarme.find_transaction_by_id(1321)