def METHOD_NAME(self):
    # Create a user with basic admin backend access
    user = self.create_user(
        username="basicadmin", email="basicadmin@example.com", password="password"
    )
    admin_permission = Permission.objects.get(
        content_type__app_label="wagtailadmin", codename="access_admin"
    )
    user.user_permissions.add(admin_permission)
    self.login(username="basicadmin", password="password")
    response = self.client.get(
        reverse(
            "wagtailsnippets_tests_advert:usage",
            args=["1"],
        )
    )
    self.assertEqual(response.status_code, 302)
    self.assertRedirects(response, reverse("wagtailadmin_home"))