def METHOD_NAME(client: Client, app: Devicehub):
    """Tests successfully performing login.
    This checks that:
    - User is returned.
    - User has token.
    - User has not the password.
    """
    with app.app_context():
        create_user()
    user, _ = client.post(
        {'email': 'foo@foo.com', 'password': 'foo'}, uri='/users/login/', status=200
    )
    assert user['email'] == 'foo@foo.com'
    assert UUID(auth.Auth.decode(user['token']))
    assert 'password' not in user
    assert user['individuals'][0]['name'] == 'Timmy'
    assert user['individuals'][0]['type'] == 'Person'
    assert len(user['individuals']) == 1
    assert user['inventories'][0]['id'] == 'test'