def METHOD_NAME(self):
    homepage_admin_url = reverse("wagtailadmin_pages:edit", args=[self.homepage.pk])
    response = self.client.post(
        reverse("wagtailadmin_login"),
        {
            "username": "test@email.com",
            "password": "password",
            "next": homepage_admin_url,
        },
    )
    self.assertRedirects(response, homepage_admin_url)