class_docstr: Tests for drawing mid-circuit measurements and classical conditions.
docstr: Test that mid-circuit measurements are drawn correctly.
docstr_tok: ["Test","that","mid-circuit","measurements","are","drawn","correctly","."]
code: def test_draw_mid_circuit_measurement(
      self, postselect, reset, mid_measure_label
  ):
      """Test that mid-circuit measurements are drawn correctly."""
  
      def func():
          qml.Hadamard(0)
          qml.measure(0, reset=reset, postselect=postselect)
          qml.PauliX(0)
          return qml.expval(qml.PauliZ(0))
  
      drawing = qml.draw(func)()
      expected_drawing = "0: ──H──" + mid_measure_label + "──X─┤  <Z>"
  
      assert drawing == expected_drawing
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.drawer import draw
label_desc: Use image node_id 2 for calling the TestMidCircuitMeasurements obj's underlying member method code with example usage: obj.test_draw_mid_circuit_measurement(postselect, reset, mid_measure_label) and returns: qml