def test_get_pending_commissions(self): """Test function call of get_pending_commissions""" global token, pending_commissions, auth_url try: client = AstakosClient(token['id'], auth_url) response = client.get_pending_commissions() except Exception as err: self.fail("Shouldn't raise Exception %s" % err) self.assertEqual(response, pending_commissions)
def test_get_pending_commissions(self): """Test function call of get_pending_commissions""" global token_1, pending_commissions _mock_request([_request_ok]) try: client = AstakosClient("https://example.com") response = client.get_pending_commissions(token_1) except Exception as err: self.fail("Shouldn't raise Exception %s" % err) self.assertEqual(response, pending_commissions)