#NEWLINE# def test_egg1( self ) : #NEWLINE# #INDENT# 'Models module can be loaded from an app in an egg' #NEWLINE# egg_name = ( '%s/modelapp.egg' % self . egg_dir ) #NEWLINE# with extend_sys_path ( self ) : #NEWLINE# #INDENT# with self . settings ( INSTALLED_APPS = [ 'app_with_models' ] ) : #NEWLINE# #INDENT# models_module = apps . get_app_config ( 'app_with_models' ) . models_module #NEWLINE# self . assertIsNotNone ( models_module ) #NEWLINE# #UNINDENT# #UNINDENT# del apps . all_models [ 'app_with_models' ]