#NEWLINE# def test_hashed_path_without_prefix( self ) : #NEWLINE# #INDENT# s3key = pretend . stub ( get = ( lambda : { #NEWLINE# #INDENT# 'Body' : io . BytesIO ( b'my contents' ) , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# bucket = pretend . stub ( Object = pretend . call_recorder ( ( lambda path : s3key ) ) ) #NEWLINE# storage = S3FileStorage ( self ) #NEWLINE# file_object = storage . get ( 'ab/file.txt' ) #NEWLINE# assert ( file_object . read ( ) == b'my contents' ) #NEWLINE# assert ( bucket . Object . calls == [ pretend . call ( 'ab/file.txt' ) ] )