class_docstr: Test the Snapshot instruction for simulators.
class_docstr_tok: ["Test","the","Snapshot","instruction","for","simulators","."]
docstr: Test that an error is raised on unsupported devices.
docstr_tok: ["Test","that","an","error","is","raised","on","unsupported","devices","."]
code: def test_unsupported_device_new(self):
      """Test that an error is raised on unsupported devices."""
  
      class DummyDevice(
          qml.devices.Device
      ):  # pylint: disable=too-few-public-methods
          def execute(self, *args, **kwargs):
              return args, kwargs
  
      dev = DummyDevice()
  
      with pytest.raises(
          qml.DeviceError, match="Device does not support snapshots."
      ):
          with qml.debugging._Debugger(dev):
              dev.execute([])
  
file_path: pennylane/tests/test_debugging.py
imports: import pytest
  import numpy
  import pennylane
label_desc: Use image node_id 7 for calling the TestSnapshot obj's underlying member method code with example usage: obj.test_unsupported_device_new() and returns: args,  kwargs