#NEWLINE# def test_filenameMatchesPackage( self ) : #NEWLINE# #INDENT# filename = os . path . join ( self . parent , 'goodpackage.py' ) #NEWLINE# fd = open ( filename , 'w' ) #NEWLINE# fd . write ( packages . testModule ) #NEWLINE# fd . close ( ) #NEWLINE# try : #NEWLINE# #INDENT# module = runner . filenameToModule ( filename ) #NEWLINE# self . failUnlessEqual ( filename , module . __file__ ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# os . remove ( filename )