def METHOD_NAME(self):
    self.client.logout()
    response = self.client.get(reverse("core-views-index"))
    self.assertRedirects(
        response,
        reverse("tcms-login") + "?next=/",
        target_status_code=HTTPStatus.OK,
    )