

def handle_request(self, req):
    self.call_count += 1
    req.path_info_pop()
    if isinstance(self.body, list):
        try:
            body = self.body.pop(0)
        except IndexError:
            body = ''
    else:
        body = self.body
    resp = swob.Response(request=req, body=body, conditional_response=True)
    try:
        self.status_int = self.status_codes.pop(0)
    except IndexError:
        resp.status_int = self.default_status_code
    resp.app_iter = iter(body)
    return resp

dataset/ETHPy150Open notmyname/slogging/test_slogging/unit/test_internal_proxy.py DumbApplication.handle_request/VarMisuse@97/110 `resp`->`self`