def test_parse_field_value_comma_separated_list():
    FIELD_VALUE = """one, two,
        three,
        four,
    """.strip()
    meta = classes.FieldMeta(format='list', type='simple')
    parsed = fields.parse_field_value(FIELD_VALUE, meta=meta)

    assert [val.text for val in parsed] == [
        'one',
        'two',
        'three',
        'four',
    ]
def test_parse_field_value_single_value():
    meta = classes.FieldMeta(format='single', type='simple')
    parsed = fields.parse_field_value("WAT", meta)
    assert parsed.text == "WAT"