예제 #1
0
 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)
예제 #2
0
파일: tests.py 프로젝트: AthinaB/synnefo
 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)
예제 #3
0
 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)