

def view(self, request, decorator=None):
    '\n        Pass request to decorated test view, return response.\n\n        Optionally accepts decorator to apply. Assigns request as ``request``\n        attribute on response.\n\n        '
    if (request is None):
        decorator = self.actions(self.mock_model, ['doit'])

    @decorator
    def view(req):
        response = HttpResponse()
        response.request = req
        return response
    return view(request)

dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_actions.py ActionsTest.view/VarMisuse@20/79 `decorator`->`request`