def METHOD_NAME(
    settings, client, test_user
):
    # Given
    settings.MAX_PASSWORD_RESET_EMAILS = 2
    settings.PASSWORD_RESET_EMAIL_COOLDOWN = 60 * 60 * 24
    url = reverse("api-v1:custom_auth:ffadminuser-reset-password")
    data = {"email": test_user.email}
    # First, let's hit the limit of emails we can send
    for _ in range(5):
        response = client.post(
            url, data=json.dumps(data), content_type="application/json"
        )
        assert response.status_code == status.HTTP_204_NO_CONTENT
    # Then - we should only have two emails
    assert len(mail.outbox) == 2
    mail.outbox.clear()
    # Next, let's reset the password
    reset_password_data = {
        "new_password": "new_password",
        "re_new_password": "new_password",
        "uid": utils.encode_uid(test_user.pk),
        "token": default_token_generator.make_token(test_user),
    }
    reset_password_confirm_url = reverse(
        "api-v1:custom_auth:ffadminuser-reset-password-confirm"
    )
    response = client.post(
        reset_password_confirm_url,
        data=json.dumps(reset_password_data),
        content_type="application/json",
    )
    assert response.status_code == status.HTTP_204_NO_CONTENT
    # Finally, let's try to send another email
    client.post(url, data=json.dumps(data), content_type="application/json")
    # Then - we should receive another email
    assert len(mail.outbox) == 1