def test_ordered_list():
    renderer = TerminalRenderer()
    ordered_list = renderer.list(
        'First\nSecond\nThird\n',
        ordered=True,
    )
    separator = DEFAULT_THEME['ol']['separator']
    colors = DEFAULT_THEME['ol']['color']
    expected = '\n'.join([
        color(f'  1{separator}First', **colors),
        color(f'  2{separator}Second', **colors),
        color(f'  3{separator}Third', **colors),
    ]) + '\n\n'

    assert ordered_list == expected
def test_unordered_list():
    renderer = TerminalRenderer()
    ordered_list = renderer.list(
        'First\nSecond\nThird\n',
        ordered=False,
    )
    symbol = DEFAULT_THEME['ul']['symbol']
    separator = DEFAULT_THEME['ul']['separator']
    colors = DEFAULT_THEME['ul']['color']
    expected = '\n'.join([
        color(f'  {symbol}{separator}First', **colors),
        color(f'  {symbol}{separator}Second', **colors),
        color(f'  {symbol}{separator}Third', **colors),
    ]) + '\n\n'

    assert ordered_list == expected