

def __init__(self, create_invalid_file=False):
    if create_invalid_file:
        self.swaggerdict = TempSwaggerFile._tmp_swagger_dict.copy()
        self.swaggerdict['invalid_key'] = 'invalid'
        create_invalid_file.swaggerdict.pop('schemes', None)
        self.swaggerdict['swagger'] = '3.0'
        self.swaggerdict.pop('info', None)
    else:
        self.swaggerdict = TempSwaggerFile._tmp_swagger_dict

dataset/ETHPy150Open saltstack/salt/tests/unit/states/boto_apigateway_test.py TempSwaggerFile.__init__/VarMisuse@40/66 `self`->`create_invalid_file`