#NEWLINE# def test_large_file_write_from_stream( self ) : #NEWLINE# #INDENT# blob = self . bucket . blob ( 'LargeFile' ) #NEWLINE# file_data = self . FILES [ 'big' ] #NEWLINE# with open ( file_data [ 'path' ] , 'rb' ) as file_obj : #NEWLINE# #INDENT# blob . upload_from_file ( file_obj ) #NEWLINE# self . case_blobs_to_delete . append ( blob ) #NEWLINE# #UNINDENT# md5_hash = blob . md5_hash #NEWLINE# if ( not isinstance ( md5_hash , six . binary_type ) ) : #NEWLINE# #INDENT# md5_hash = md5_hash . encode ( 'utf-8' ) #NEWLINE# #UNINDENT# self . assertEqual ( md5_hash , file_data [ 'hash' ] )