class_docstr: Test assertions involving decompositions.
class_docstr_tok: ["Test","assertions","involving","decompositions","."]
docstr: Test that output must match queued contents.
docstr_tok: ["Test","that","output","must","match","queued","contents","."]
code: def test_bad_decomposition_queuing(self):
      """Test that output must match queued contents."""
  
      class BadDecomp(Operator):
          @staticmethod
          def compute_decomposition(wires):
              qml.RX(1.2, wires=0)
              return [qml.RY(2.3, 0)]
  
      with pytest.raises(
          AssertionError,
          match="decomposition must match queued operations",
      ):
          assert_valid(BadDecomp(wires=0), skip_pickle=True)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.operation import Operator
  from pennylane.ops.functions import assert_valid
label_desc: Use image node_id 2 for calling the TestDecompositionErrors obj's underlying member method code with example usage: obj.test_bad_decomposition_queuing() and returns: list