def test_ensure_list_csv():
    'Test ensure_list_csv.'
    schema = vol.Schema(cv.ensure_list_csv)
    options = (None, 12, [], ['string'], 'string1,string2')
    for value in options:
        schema(value)
    assert (schema('string1, string2 ') == ['string1', 'string2'])
Test ensure_list_csv.
def test_ensure_list_csv():
    
    schema = vol.Schema(cv.ensure_list_csv)
    options = (None, 12, [], ['string'], 'string1,string2')
    for value in options:
        schema(value)
    assert (schema('string1, string2 ') == ['string1', 'string2'])