

def req(self, method, *args, **kwargs):
    'Shortcut for RequestFactory; adds request.user.'
    req = getattr(RequestFactory(), method)(*args, **kwargs)
    req.user = Mock()
    return req

dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_actions.py ActionsTest.req/original