class_docstr: Tests that the template defines the correct decomposition.
class_docstr_tok: ["Tests","that","the","template","defines","the","correct","decomposition","."]
docstr: Checks the queue for the default settings.
docstr_tok: ["Checks","the","queue","for","the","default","settings","."]
code: def test_expansion(self, features):
      """Checks the queue for the default settings."""
  
      op = qml.DisplacementEmbedding(features=features, wires=range(3))
      tape = op.expand()
  
      assert len(tape.operations) == len(features)
      for idx, gate in enumerate(tape.operations):
          assert gate.name == "Displacement"
          assert gate.parameters[0] == features[idx]
  
imports: import pytest
  import numpy
  from pennylane import numpy
  import pennylane
label_desc: Use image node_id 1 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_expansion(features) without return types