def login(client, password="pass", ):
    """Helper function to log into our app.

    Parameters
    ----------
    client : test client object
        Passed here is the flask test client used to send the request.

    password : str
        Dummy password for logging into the app.

    Return
    -------
    post request object
        The test client is instructed to send a post request to the /login
        route. The request contains the fields values to be posted by the form.
    """
    return client.post('/login',
                       data=dict(pass_field=password, remember_me=True),
                       follow_redirects=True)