#NEWLINE# def test_egg2( self ) : #NEWLINE# #INDENT# 'Loading an app from an egg that has no models returns no models (and no error)' #NEWLINE# egg_name = ( '%s/nomodelapp.egg' % self . egg_dir ) #NEWLINE# with extend_sys_path ( egg_name ) : #NEWLINE# #INDENT# with self . settings ( INSTALLED_APPS = [ 'app_no_models' ] ) : #NEWLINE# #INDENT# models_module = apps . get_app_config ( 'app_no_models' ) . models_module #NEWLINE# self . assertIsNone ( models_module ) #NEWLINE# #UNINDENT# #UNINDENT# del apps . all_models [ 'app_no_models' ]