示例#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)