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
Used to enable/disable a service. For compute services, setting to
dataset/ETHPy150Open jamesmfriedman/django-easytz/easytz/tests.py/TimezoneTestCase.get_request--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/cells/rpcapi.py/CellsAPI.service_update