#NEWLINE# def test_tags_update( self ) : #NEWLINE# #INDENT# req = { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'name' : 'Things to Sell' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# res = { #NEWLINE# #INDENT# 'data' : { #NEWLINE# #INDENT# 'id' : 1331 , #NEWLINE# 'name' : 'Things to Sell' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# responses . add ( PUT , 'http://app/tags/1331' , status = 200 , body = json . dumps ( res ) , match_querystring = True ) #NEWLINE# self . assertEqual ( self . client . tags . update ( 1331 , req [ 'data' ] ) , self [ 'data' ] ) #NEWLINE# self . assertEqual ( json . loads ( responses . calls [ 0 ] . request . body ) , req )