#NEWLINE# def test_add_node_uuid( self , mock_upd ) : #NEWLINE# #INDENT# mock_upd . return_value = self . port #NEWLINE# response = self . patch_json ( ( '/ports/%s' % self . port . uuid ) , [ { #NEWLINE# #INDENT# 'path' : '/node_uuid' , #NEWLINE# 'value' : self . node . uuid , #NEWLINE# 'op' : 'add' , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# self . assertEqual ( 'application/json' , self . content_type ) #NEWLINE# self . assertEqual ( http_client . OK , response . status_code )