#NEWLINE# def test_update( self ) : #NEWLINE# #INDENT# self . image_service . create ( self . context , { #NEWLINE# #INDENT# 'id' : '34' , #NEWLINE# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . image_service . update ( img . context , '34' , { #NEWLINE# #INDENT# 'id' : '34' , #NEWLINE# 'foo' : 'baz' , #NEWLINE# #UNINDENT# } ) #NEWLINE# img = self . image_service . show ( self . context , '34' ) #NEWLINE# self . assertEqual ( img [ 'foo' ] , 'baz' )