

def test_present_when_swagger_file_is_invalid(self):
    '\n        Tests present when the swagger file is invalid.\n        '
    result = {
        
    }
    with TempSwaggerFile(create_invalid_file=True) 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.assertFalse(result.get('result', True))

dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_apigateway_test.py BotoApiGatewayTestCase.test_present_when_swagger_file_is_invalid/original