def METHOD_NAME(self):
    """Check if AttributeError is raised when an invalid backend attribute is accessed."""
    backend = self.backend
    with self.subTest(backend=backend.name):
        with self.assertRaises(AttributeError):
            backend.foobar  # pylint: disable=pointless-statement