def METHOD_NAME(client):
    user = UserFactory(is_staff=True)
    totp_device = user.totpdevice_set.create()
    client.post(
        reverse("account_login"),
        {"login": user.username, "password": SUPER_SECURE_TEST_PASSWORD},
    )
    token = get_token_from_totp_device(totp_device)
    client.post(reverse_lazy("two-factor-authenticate"), {"otp_token": token})
    assert len(mail.outbox) == 1
    assert "Security Alert" in mail.outbox[0].subject
    assert "We noticed a new login to your account." in mail.outbox[0].body
    assert mail.outbox[0].to == [user.email]
    mail.outbox.clear()
    user2 = UserFactory()
    totp_device = user2.totpdevice_set.create()
    client.post(
        reverse("account_login"),
        {"login": user2.username, "password": SUPER_SECURE_TEST_PASSWORD},
    )
    token = get_token_from_totp_device(totp_device)
    client.post(reverse_lazy("two-factor-authenticate"), {"otp_token": token})
    assert len(mail.outbox) == 0