class_docstr: Tests for drawing mid-circuit measurements and classical conditions.
docstr: Test that a circuit is drawn correctly when multiple lines are needed and the
  measurement and condition are on the same lines in the first line.
docstr_tok: ["Test","that","a","circuit","is","drawn","correctly","when","multiple","lines","are","needed","and","the","measurement","and","condition","are","on","the","same","lines","in","the","first","line","."]
code: def test_single_meas_multi_cond_first_line(self):
      """Test that a circuit is drawn correctly when multiple lines are needed and the
      measurement and condition are on the same lines in the first line.
      """
  
      def circ():
          m0 = qml.measure(0)
          qml.cond(m0, qml.RX)(0.123, 1)
          qml.cond(m0, qml.PauliX)(1)
          qml.RX(0.0, 0)
          qml.RX(0.0, 1)
          return qml.expval(qml.PauliZ(0))
  
      drawing = qml.draw(circ, max_length=25)()
      expected_drawing = (
          "0: ──┤↗├──RX(0.00)───\n"
          "1: ───║───RX(0.12)──X\n"
          "      ╚═══╩═════════╝\n\n"
          "────────────┤  <Z>\n"
          "───RX(0.00)─┤     \n"
          "                  "
      )
  
      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 12 for calling the TestMidCircuitMeasurements obj's underlying member method code with example usage: obj.test_single_meas_multi_cond_first_line() and returns: qml