def test_delimited_list():
 assert (hug.types.delimited_list(',')('value1,value2') == ['value1', 'value2'])
 assert (hug.types.delimited_list(',')(['value1', 'value2']) == ['value1', 'value2'])
 assert (hug.types.delimited_list('|-|')('value1|-|value2|-|value3,value4') == ['value1', 'value2', 'value3,value4'])
 assert (',' in hug.types.delimited_list(',').__doc__)

def test_delimited_list ( ) : assert ( hug . types . delimited_list ( ',' ) ( 'value1,value2' ) == [ 'value1' , 'value2' ] ) assert ( hug . types . delimited_list ( ',' ) ( [ 'value1' , 'value2' ] ) == [ 'value1' , 'value2' ] ) assert ( hug . types . delimited_list ( '|-|' ) ( 'value1|-|value2|-|value3,value4' ) == [ 'value1' , 'value2' , 'value3,value4' ] ) assert ( ',' in hug . types . delimited_list ( ',' ) . __doc__ )
test to ensure hugs custom delimited list type function works as expected .