#NEWLINE# def set_installed_apps( self , apps ) : #NEWLINE# #INDENT# "\n        Sets Django's INSTALLED_APPS setting to be effectively the list passed in.\n        " #NEWLINE# apps = list ( apps ) #NEWLINE# if apps : #NEWLINE# #INDENT# assert isinstance ( apps [ 0 ] , string_types ) , 'The argument to set_installed_apps must be a list of strings.' #NEWLINE# #UNINDENT# ( settings . INSTALLED_APPS , settings . OLD_INSTALLED_APPS ) = ( apps , settings . INSTALLED_APPS ) #NEWLINE# self . _redo_app_cache ( )