#NEWLINE# def testCreatesExpectedStringForObjectPut( self ) : #NEWLINE# #INDENT# headers = { #NEWLINE# #INDENT# 'Date' : 'Tue, 27 Mar 2007 21:15:45 +0000' , #NEWLINE# 'Content-MD5' : '4gJE4saaMU4BqNR0kLY+lw==' , #NEWLINE# 'Content-Type' : 'image/jpeg' , #NEWLINE# 'Content-Length' : '94328' , #NEWLINE# #UNINDENT# } #NEWLINE# params = Parameters ( 'PUT' , 'johnsmith' , 'puppy.jpg' , expected ) #NEWLINE# expected = 'PUT\n4gJE4saaMU4BqNR0kLY+lw==\nimage/jpeg\nTue, 27 Mar 2007 21:15:45 +0000\n/johnsmith/puppy.jpg' #NEWLINE# self . assertEqual ( expected , params . textToSign ( ) )