def test_present_when_stage_associating_to_new_deployment_errored_on_model_creation(self):
        # no api existed
        self.conn.get_rest_apis.return_value = no_apis_ret
        # create top level api
        self.conn.create_rest_api.return_value = api_ret
        # no models existed in the newly created api
        self.conn.get_model.side_effect = ClientError(error_content, 'get_model')
        # create model return error
        self.conn.create_model.side_effect = ClientError(error_content, 'create_model')

        result = {}
        with TempSwaggerFile() as swagger_file:
            result = salt_states['boto_apigateway.present'](
                        'api present',
                        'unit test api',
                        swagger_file,
                        'test',
                        False,
                        'arn:aws:iam::1234:role/apigatewayrole',
                        **conn_parameters)

        self.assertIs(result.get('abort'), True)
        self.assertIs(result.get('result'), False)
        self.assertIn('create_model', result.get('comment', ''))
Assert that a long running process provided Process object as returned by subprocess.Popen
dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_apigateway_test.py/BotoApiGatewayTestCase.test_present_when_stage_associating_to_new_deployment_errored_on_model_creation--crossover with--dataset/ETHPy150Open StackStorm/st2/st2tests/st2tests/base.py/IntegrationTestCase.assertProcessIsRunning