#NEWLINE# def test_directory( self ) : #NEWLINE# #INDENT# "\n        Test loader against a filesystem directory. It should handle\n        'path' and 'path/' the same way.\n        " #NEWLINE# path = util . sibpath ( __file__ , 'goodDirectory' ) #NEWLINE# os . mkdir ( path ) #NEWLINE# f = file ( os . path . join ( path , '__init__.py' ) , 'w' ) #NEWLINE# f . close ( ) #NEWLINE# try : #NEWLINE# #INDENT# module = runner . filenameToModule ( f ) #NEWLINE# self . assert_ ( module . __name__ . endswith ( 'goodDirectory' ) ) #NEWLINE# module = runner . filenameToModule ( ( path + os . path . sep ) ) #NEWLINE# self . assert_ ( module . __name__ . endswith ( 'goodDirectory' ) ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# shutil . rmtree ( path )