

def test_present_when_stage_is_already_at_desired_deployment(self):
    "\n        Tests scenario where no action will be taken since we're already\n        at desired state\n        "
    self.conn.get_rest_apis.return_value = apis_ret
    self.conn.get_deployment.return_value = deployment1_ret
    self.conn.get_stage.return_value = stage1_deployment1_ret
    self.conn.update_stage.side_effect = ClientError(error_content, 'update_stage should not be called')
    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.assertFalse(self.get('abort'))
    self.assertTrue(result.get('current'))
    self.assertIs(result.get('result'), True)
    self.assertNotIn('update_stage should not be called', result.get('comment', ''))

dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_apigateway_test.py BotoApiGatewayTestCase.test_present_when_stage_is_already_at_desired_deployment/VarMisuse@101/226 `result`->`self`