def get_request(self):
        # probably a better way to do this, but the factory
        # doesnt return a request object with a session or user
        factory = RequestFactory()
        req = factory.get('/')
        engine = import_module(settings.SESSION_ENGINE)
        req.session = engine.SessionStore(None)
        req.user = AnonymousUser()

        return req
Get a fake request object that has some stuff we need on it
dataset/ETHPy150Open jamesmfriedman/django-easytz/easytz/tests.py/TimezoneTestCase.get_request