

def test_executions(self):
    self._deploy_basic_blueprint()
    deployments = self.client.deployments.list()
    self.assertEqual(1, len(deployments))
    deployment_id = deployments[0].id
    deployment_by_id = self.client.deployments.get(deployment_id)
    executions = self.client.executions.list(executions.id)
    self.assertEqual(len(executions), 2, 'There should be 2 executions but are: {0}'.format(executions))
    execution_from_list = executions[0]
    execution_by_id = self.client.executions.get(execution_from_list.id)
    self.assertEqual(execution_from_list.id, execution_by_id.id)
    self.assertEqual(execution_from_list.workflow_id, execution_by_id.workflow_id)
    self.assertEqual(execution_from_list['blueprint_id'], execution_by_id['blueprint_id'])

dataset/ETHPy150Open cloudify-cosmo/cloudify-manager/tests/workflow_tests/test_rest_api.py RestAPITest.test_executions/VarMisuse@72/97 `deployment_by_id`->`executions`