@staticmethod
    def wait_for_execution(client, execution, timeout=900):
        # Poll for execution status until execution ends
        deadline = time.time() + timeout
        while True:
            if time.time() > deadline:
                raise Exception(
                    'execution of operation {0} for deployment {1} timed out'.
                    format(execution.workflow_id, execution.deployment_id))

            execution = client.executions.get(execution.id)
            if Execution.END_STATES in execution.status:
                break
            time.sleep(3)
dataset/ETHPy150Open cloudify-cosmo/cloudify-manager/rest-service/manager_rest/test/base_test.py/BaseServerTestCase.wait_for_execution/swapped operands of `in`