def test_sections_multiple():
    sections = [
        dict(heading='Offer', type='list', contents=['work', 'money']),
        dict(heading='Must have', type='list', contents=['PHP', 'C#']),
    ]

    assert template_filters.sections(sections) == '\n'.join([
        '- heading: Offer',
        '  type: list',
        '  contents:',
        '    - work',
        '    - money',
        '',
        '- heading: Must have',
        '  type: list',
        '  contents:',
        '    - PHP',
        '    - C#',
    ])
def test_sections_paragraph(section, expected):
    assert template_filters.sections([section]) == expected