def req(self, method, *args, **kwargs):
        req = getattr(RequestFactory(), method)(*args, **kwargs)
        req.user = Mock()
        return req
Shortcut for RequestFactory; adds request.user.
dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_actions.py/ActionsTest.req