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'])

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' ] )
test ensure_list_csv .