#NEWLINE# def assertIsFile( self , path ) : #NEWLINE# #INDENT# if ( not isinstance ( path , unicode ) ) : #NEWLINE# #INDENT# path = unicode ( path , 'utf8' ) #NEWLINE# #UNINDENT# self . assertTrue ( os . path . isfile ( path . encode ( 'utf8' ) ) , msg = 'Path is not a file: {0}' . format ( path ) )