def _set_job_status(self, status):
    self.mock_job_deployment.get_job_status.return_value = status
    mock_job_deployment_class = ConditionalReturn()
    mock_job_deployment_class.return_when(self.mock_job_deployment, self.mock_job_id, None, None)
    mock_get_item = ConditionalReturn()
    mock_get_item.return_when({'deployment_type': mock_job_deployment_class}, 'deployment_implementation')
    self.config_manager_mock.__getitem__ = mock_get_item
def _set_job_status(self, status):
    self.mock_job_deployment.get_job_status.return_value = status
    mock_job_deployment_class = ConditionalReturn()
    mock_job_deployment_class.return_when(self.mock_job_deployment, self.mock_job_id, None, None)
    mock_get_item = ConditionalReturn()
    mock_get_item.return_when({'deployment_type': mock_job_deployment_class}, 'deployment_implementation')
    self.config_manager_mock.__getitem__ = mock_get_item