class_docstr: Tests for the expval function
class_docstr_tok: ["Tests","for","the","expval","function"]
docstr: Test that the eigvals value is just assigned to new mp without copying.
docstr_tok: ["Test","that","the","eigvals","value","is","just","assigned","to","new","mp","without","copying","."]
code: def test_copy_eigvals(self):
      """Test that the eigvals value is just assigned to new mp without copying."""
      # pylint: disable=protected-access
      m = ExpectationMP(eigvals=[-0.5, 0.5], wires=qml.wires.Wires(0))
      copied_m = copy.copy(m)
      assert m._eigvals is copied_m._eigvals
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import Expectation, Shots
  from pennylane.measurements.expval import ExpectationMP
label_desc: Use image node_id 13 for calling the TestExpval obj's underlying member method code with example usage: obj.test_copy_eigvals() without return types