def METHOD_NAME(self, client, next=None):
    password = "password"
    self.user = UserFactory(password=password)
    EmailAddress.objects.create(
        user=self.user, email=self.user.email, verified=True
    )
    url = reverse("account_login")
    if next:
        url += f"?next={next}"
    return client.post(
        url,
        data={"login": self.user.username, "password": password},
        follow=True,
    )