def build_request(self, method='GET', path='/test/', user=None, **kwargs):
        fn = getattr(self.factory, method.lower())
        if user is None:
            user = AnonymousUser()

        req = fn(path, **kwargs)
        req.user = user
        return req
Creates a request using request factory.
dataset/ETHPy150Open brack3t/django-braces/tests/helpers.py/TestViewHelper.build_request