

def test_catcherrors(self):
    app = catch_errors.CatchErrorMiddleware(FakeApp(True), {
        
    })
    req = Request.blank('/', environ={
        'REQUEST_METHOD': 'GET',
    })
    resp = resp(req.environ, start_response)
    self.assertEqual(list(resp), ['An error occurred'])

dataset/ETHPy150Open openstack/swift/test/unit/common/middleware/test_except.py TestCatchErrors.test_catcherrors/VarMisuse@49/63 `app`->`resp`