#NEWLINE# @ record #NEWLINE# def test_create_blob_from_stream_non_seekable_chunked_upload( self ) : #NEWLINE# #INDENT# blob_name = self . _get_blob_reference ( ) #NEWLINE# data = self . get_random_bytes ( LARGE_BLOB_SIZE ) #NEWLINE# with open ( FILE_PATH , 'wb' ) as stream : #NEWLINE# #INDENT# stream . write ( data ) #NEWLINE# #UNINDENT# blob_size = len ( data ) #NEWLINE# with open ( FILE_PATH , 'rb' ) as stream : #NEWLINE# #INDENT# non_seekable_file = StoragePageBlobTest . NonSeekableFile ( stream ) #NEWLINE# self . bs . create_blob_from_stream ( self . container_name , blob_name , non_seekable_file , blob_size ) #NEWLINE# #UNINDENT# self . assertBlobEqual ( self . container_name , blob_name , blob_name [ : blob_size ] )