def METHOD_NAME(self, obs):
    """Test that the shape is correct."""
    dev = qml.device("default.qubit", wires=1)
    res = qml.var(obs)
    # pylint: disable=use-implicit-booleaness-not-comparison
    assert res.shape(dev, Shots(None)) == ()
    assert res.shape(dev, Shots(100)) == ()