class_docstr: Tests measurements are drawn correctly
class_docstr_tok: ["Tests","measurements","are","drawn","correctly"]
docstr: Tests a variety of measurements draw measurement boxes on the correct wires.
code: def test_measurements(self, measurements, wires):
      """Tests a variety of measurements draw measurement boxes on the correct wires."""
  
      with qml.queuing.AnnotatedQueue() as q_tape:
          for m in measurements:
              qml.apply(m)
  
      tape = QuantumScript.from_queue(q_tape)
      _, ax = tape_mpl(tape)
  
      assert len(ax.patches) == 3 * len(wires)
  
      for ii, w in enumerate(wires):
          assert ax.patches[3 * ii].get_x() == 1 - self.width / 2.0
          assert ax.patches[3 * ii].get_y() == w - self.width / 2.0
          assert ax.patches[3 * ii + 1].center == (
              1,
              w + 0.75 * 0.15,
          )  # arc
          assert isinstance(
              ax.patches[3 * ii + 2], mpl.patches.FancyArrow
          )  # fancy arrow
  
      plt.close()
  
imports: import pytest
  import pennylane
  from pennylane.drawer import tape_mpl
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 1 for calling the TestMeasurements obj's underlying member method code with example usage: obj.test_measurements(measurements, wires) without return types