class_docstr: Tests measurements are drawn correctly
class_docstr_tok: ["Tests","measurements","are","drawn","correctly"]
docstr: Test state produces measurements on all wires.
code: def test_state(self):
      """Test state produces measurements on all wires."""
  
      with qml.queuing.AnnotatedQueue() as q_tape:
          qml.state()
  
      tape = QuantumScript.from_queue(q_tape)
      _, ax = tape_mpl(tape, wire_order=[0, 1, 2], show_all_wires=True)
  
      assert (
          len(ax.patches) == 9
      )  # three measure boxes with 3 patches each
  
      assert all(
          isinstance(box, mpl.patches.FancyBboxPatch)
          for box in ax.patches[::3]
      )
      assert all(
          isinstance(arc, mpl.patches.Arc) for arc in ax.patches[1::3]
      )
      assert all(
          isinstance(arrow, mpl.patches.FancyArrow)
          for arrow in ax.patches[2::3]
      )
  
      for layer, box in enumerate(ax.patches[::3]):
          assert box.get_x() == 1 - self.width / 2.0
          assert box.get_y() == layer - self.width / 2.0
      plt.close()
  
imports: import pytest
  import pennylane
  from pennylane.drawer import tape_mpl
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 2 for calling the TestMeasurements obj's underlying member method code with example usage: obj.test_state() without return types