class_docstr: Test that the QASM serialization works correctly
  when circuits are created via QNodes.
class_docstr_tok: ["Test","that","the","QASM","serialization","works","correctly","when","circuits","are","created","via","QNodes","."]
docstr: Test that the QASM serializer correctly integrates with the new wires class.
docstr_tok: ["Test","that","the","QASM","serializer","correctly","integrates","with","the","new","wires","class","."]
code: def test_wires(self):
      """Test that the QASM serializer correctly integrates with the new wires class."""
      dev = qml.device("default.qubit", wires=["a", "b", "c"])
  
      @qml.qnode(dev)
      def qnode():
          qml.Hadamard(wires="a")
          qml.CNOT(wires=["b", "a"])
          return [
              qml.expval(qml.PauliX("c")),
              qml.expval(qml.PauliZ("a")),
              qml.expval(qml.Hadamard("b")),
          ]
  
      qnode()
      res = qnode.qtape.to_openqasm()
  
      expected = dedent(
          """\
              OPENQASM 2.0;
              include "qelib1.inc";
              qreg q[3];
              creg c[3];
              h q[0];
              cx q[1],q[0];
              h q[2];
              ry(-0.7853981633974483) q[1];
              measure q[0] -> c[0];
              measure q[1] -> c[1];
              measure q[2] -> c[2];
              """
      )
  
      assert res == expected
  
imports: from textwrap import dedent
  import numpy
  import pytest
  import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 10 for calling the TestQNodeQasmIntegrationTests obj's underlying member method code with example usage: obj.test_wires() and returns: list