#NEWLINE# def test_coe_service_update( self ) : #NEWLINE# #INDENT# patch = { #NEWLINE# #INDENT# 'op' : 'replace' , #NEWLINE# 'value' : NEW_SELECTOR , #NEWLINE# 'path' : '/selector' , #NEWLINE# #UNINDENT# } #NEWLINE# service = self . mgr . update ( service_id = SERVICE1 [ 'id' ] , bay_ident = SERVICE1 [ 'bay_uuid' ] , patch = patch ) #NEWLINE# expect = [ ( 'PATCH' , ( '/v1/services/%s/?bay_ident=%s' % ( SERVICE1 [ 'id' ] , SERVICE1 [ 'bay_uuid' ] ) ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , patch ) ] #NEWLINE# self . assertEqual ( expect , self . api . calls ) #NEWLINE# self . assertEqual ( NEW_SELECTOR , service . selector )