class_docstr: Test additional/misc functionality relating to qml.cond
class_docstr_tok: ["Test","additional\/misc","functionality","relating","to","qml.cond"]
docstr: Test that an error is raised when the input is not recognized.
docstr_tok: ["Test","that","an","error","is","raised","when","the","input","is","not","recognized","."]
code: def test_cond_error_unrecognized_input(self, inp):
      """Test that an error is raised when the input is not recognized."""
  
      with pytest.raises(
          ConditionalTransformError,
          match="Only operations and quantum functions with no measurements",
      ):
          m_0 = qml.measure(1)
          qml.cond(m_0, inp)()
  
file_path: pennylane/tests/ops/op_math/test_condition.py
imports: import pytest
  import pennylane
  from pennylane.ops.op_math.condition import ConditionalTransformError
label_desc: Use image node_id 1 for calling the TestAdditionalCond obj's underlying member method code with example usage: obj.test_cond_error_unrecognized_input(inp) without return types