class_docstr: Test the properties of the symbolic op.
class_docstr_tok: ["Test","the","properties","of","the","symbolic","op","."]
docstr: Test that a symbolic op has a matrix if its base has a matrix.
docstr_tok: ["Test","that","a","symbolic","op","has","a","matrix","if","its","base","has","a","matrix","."]
code: def test_has_matrix(self, has_mat):
      """Test that a symbolic op has a matrix if its base has a matrix."""
  
      class DummyOp(Operator):
          has_matrix = has_mat
  
      base = DummyOp("b")
      op = SymbolicOp(base)
      assert op.has_matrix == has_mat
  
imports: from copy import copy
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.operation import Operator
  from pennylane.ops.op_math import SymbolicOp, ScalarSymbolicOp
  from pennylane.wires import Wires
label_desc: Use image node_id 4 for calling the TestProperties obj's underlying member method code with example usage: obj.test_has_matrix(has_mat) without return types