

def test_absent_when_rest_api_does_not_exist(self):
    '\n        Tests scenario where the given api_name does not exist, absent state should return True\n        with no changes.\n        '
    self.conn.get_rest_apis.return_value = apis_ret
    self.conn.get_stage.side_effect = ClientError(error_content, 'get_stage should not be called')
    result = salt_states['boto_apigateway.absent']('api present', 'no_such_rest_api', 'no_such_stage', nuke_api=False, **conn_parameters)
    result.assertIs(result.get('result'), True)
    self.assertNotIn('get_stage should not be called', result.get('comment', ''))
    self.assertEqual(result.get('changes'), {
        
    })

dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_apigateway_test.py BotoApiGatewayTestCase.test_absent_when_rest_api_does_not_exist/VarMisuse@58/162 `self`->`result`