class_docstr: Integration tests for default.qubit.autograd. This test ensures it integrates
  properly with the PennyLane UI, in particular the new QNode.
class_docstr_tok: ["Integration","tests","for","default.qubit.autograd",".","This","test","ensures","it","integrates","properly","with","the","PennyLane","UI",",","in","particular","the","new","QNode","."]
docstr: Test that the device defines the right capabilities
docstr_tok: ["Test","that","the","device","defines","the","right","capabilities"]
code: def test_defines_correct_capabilities(self):
      """Test that the device defines the right capabilities"""
  
      dev = qml.device("default.qubit.autograd", wires=1)
      cap = dev.capabilities()
      capabilities = {
          "model": "qubit",
          "supports_finite_shots": True,
          "supports_tensor_observables": True,
          "returns_probs": True,
          "returns_state": True,
          "supports_inverse_operations": True,
          "supports_analytic_computation": True,
          "passthru_interface": "autograd",
          "supports_broadcasting": True,
          "passthru_devices": {
              "torch": "default.qubit.torch",
              "tf": "default.qubit.tf",
              "autograd": "default.qubit.autograd",
              "jax": "default.qubit.jax",
          },
      }
      assert cap == capabilities
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.devices.default_qubit_autograd import DefaultQubitAutograd
  from pennylane import DeviceError
label_desc: Use image node_id 1 for calling the TestQNodeIntegration obj's underlying member method code with example usage: obj.test_defines_correct_capabilities() without return types