def authenticated_user(client, account):
    """Create an authenticated user for a test"""
    # user = G(User, email='test@gmail.com')
    account.email = 'test@gmail.com'
    account.set_password('my_password123')
    account.save()
    client.login(email='test@gmail.com', password='my_password123')
    return account