#NEWLINE# def test_loadTestsFromNames__module_not_loaded( self ) : #NEWLINE# #INDENT# module_name = 'unittest.test.dummy' #NEWLINE# sys . modules . pop ( module_name , None ) #NEWLINE# loader = unittest . TestLoader ( ) #NEWLINE# try : #NEWLINE# #INDENT# suite = loader . loadTestsFromNames ( [ module_name ] ) #NEWLINE# self . assertIsInstance ( suite , loader . suiteClass ) #NEWLINE# self . assertEqual ( list ( suite ) , [ unittest . TestSuite ( ) ] ) #NEWLINE# self . assertIn ( module_name , sys . modules ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# if ( module_name in sys . modules ) : #NEWLINE# #INDENT# del sys . modules [ module_name ]