def login_user(client, username, password):
    """
    User authorization on POST request to login view
    :param client: test client of the flask application
    :param username: login of the user
    :param password: password of the user
    """
    return client.post("/", data=dict(username=username, password=password), follow_redirects=True)