def METHOD_NAME(self):
    self.superuser.is_superuser = False
    self.superuser.user_permissions.add(
        Permission.objects.get(
            content_type__app_label="wagtailadmin", codename="access_admin"
        )
    )
    self.superuser.save()
    self.assertFalse(ImagesSummaryItem(self.get_request()).is_shown())