class_docstr: Tests that involve how wires are displayed
class_docstr_tok: ["Tests","that","involve","how","wires","are","displayed"]
docstr: Test when ``wire_order`` priority by requesting ``show_all_wires`` with
  the ``wire_order`` containing wires not on the device. The output should have
  three wires, one active and two empty wires from the wire order.
docstr_tok: ["Test","when","``","wire_order","``","priority","by","requesting","``","show_all_wires","``","with","the","``","wire_order","``","containing","wires","not","on","the","device",".","The","output","should","have","three","wires",",","one","active","and","two","empty","wires","from","the","wire","order","."]
code: def test_wire_order_not_on_device(self):
      """Test when ``wire_order`` priority by requesting ``show_all_wires`` with
      the ``wire_order`` containing wires not on the device. The output should have
      three wires, one active and two empty wires from the wire order.
      """
  
      _, ax = qml.draw_mpl(
          circuit2, wire_order=[2, "a"], show_all_wires=True
      )(1.23)
  
      assert len(ax.lines) == 3  # three wires
  
      assert len(ax.texts) == 4  # three wire labels and one gate label
      assert ax.texts[0].get_text() == "2"
      assert ax.texts[1].get_text() == "a"
      assert ax.texts[2].get_text() == "0"
      plt.close()
  
imports: import pytest
  import pennylane
label_desc: Use image node_id 4 for calling the TestWireBehaviour obj's underlying member method code with example usage: obj.test_wire_order_not_on_device() without return types