#NEWLINE# def sandbox_file( path ) : #NEWLINE# #INDENT# fpath = os . path . normpath ( os . path . join ( os . path . dirname ( __file__ ) , 'data' , 'sandbox' , os . path . basename ( path ) ) ) #NEWLINE# if ( not os . path . exists ( fpath ) ) : #NEWLINE# #INDENT# raise mesos . cli . exceptions . FileDoesNotExist ( '' ) #NEWLINE# #UNINDENT# return open ( fpath , 'rb' )