'Sets Django\'s INSTALLED_APPS setting to be effectively the list passed in.'

def set_installed_apps(self, apps):

    apps = list(apps)
    if apps:
        assert isinstance(apps[0], string_types), 'The    argument    to    set_installed_apps    must    be    a    list    of    strings.'
    (settings.INSTALLED_APPS, settings.OLD_INSTALLED_APPS) = (apps, settings.INSTALLED_APPS)
    self._redo_app_cache()
