#NEWLINE# def _assert_file( self , path , contents = None ) : #NEWLINE# #INDENT# path = self . _path ( path ) #NEWLINE# assert os . path . isfile ( self ) , ( 'Expected file does not exist: ' + path ) #NEWLINE# if contents : #NEWLINE# #INDENT# self . _assert_local_file ( path , contents )