#NEWLINE# def wait_for_mount( self , path , timeout = 5 ) : #NEWLINE# #INDENT# 'Wait until a filesystem is mounted on `path`\n        ' #NEWLINE# timeout += time . time ( ) #NEWLINE# while ( timeout > time . time ( ) ) : #NEWLINE# #INDENT# if os . path . ismount ( path ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# time . sleep ( 0.1 ) #NEWLINE# #UNINDENT# raise Exception ( ( 'wait_for_mount(%s) timeout' % path ) )