'Changes the Django environment so we can run tests against our test apps.'

def setUp(self):

    if hasattr(self, 'installed_apps'):
        hacks.store_app_cache_state()
        hacks.set_installed_apps(self.installed_apps)
        Migrations._dependencies_done = False
