class_docstr: Tests for simple single-qutrit observables
class_docstr_tok: ["Tests","for","simple","single-qutrit","observables"]
docstr: Test that the _obs_data() method of qml.GellMann returns the correct
  observable data.
docstr_tok: ["Test","that","the","_obs_data","(",")","method","of","qml.GellMann","returns","the","correct","observable","data","."]
code: def test_obs_data(self):
      """Test that the _obs_data() method of qml.GellMann returns the correct
      observable data."""
      ob1 = qml.GellMann(wires=0, index=2)
      ob2 = qml.GellMann(wires=0, index=2) @ qml.GellMann(
          wires=1, index=1
      )
  
      assert ob1._obs_data() == {("GellMann", qml.wires.Wires(0), (2,))}
      assert ob2._obs_data() == {
          ("GellMann", qml.wires.Wires(0), (2,)),
          ("GellMann", qml.wires.Wires(1), (1,)),
      }
  
imports: import functools
  from unittest.mock import PropertyMock, patch
  import pytest
  import numpy
  from gate_data import GELL_MANN
  import pennylane
label_desc: Use image node_id 4 for calling the TestGellMann obj's underlying member method code with example usage: obj.test_obs_data() without return types