def results():
    processed_poem = format_poem(session['input_poem'])
    # The readings below are samples. Ultimately we want them populated from
    # database and presented in a standard order.
    readings = ['tshreingH-2a', 'tshyek-3']
    return render_template('results.html', processed_poem=processed_poem,
            readings=readings)
def results():
    processed_poem = format_poem(session['input_poem'])
    # The readings below are samples. Ultimately we want them populated from
    # database and presented in a standard order.
    readings = ['tshreingH-2a', 'tshyek-3']
    return render_template('results.html',
                           processed_poem=processed_poem,
                           readings=readings)
def test_format_01():
    """Test full formatting function."""
    for poem, formatted in zip(poem_list, format_list):
        assert F.format_poem(poem, stanza_len=8) == formatted