code: def test_move_and_delete_traces(self):
      # Delete middle trace
      traces = self.figure.data
      self.figure.data = [traces[2], traces[0]]
  
      # Check messages
      self.figure._send_deleteTraces_msg.assert_called_once_with([1])
      self.figure._send_moveTraces_msg.assert_called_once_with(
          [0, 1], [1, 0]
      )
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_move_delete_traces.py
imports: import sys
  from unittest import TestCase
  import pytest
  import plotly.graph_objs
label_desc: Use image node_id 7 for calling the TestMoveDeleteTracesMessages obj's underlying member method code with example usage: obj.test_move_and_delete_traces() without return types