def METHOD_NAME(user, client, logout_url):
    logged_in = client.login(email=user.email, password='password')
    assert logged_in is True
    response = client.post(logout_url)
    assert response.status_code == 302
    assert '_auth_user_id' not in client.session