def test_comma_separated_list():
 assert (hug.types.comma_separated_list('value') == ['value'])
 assert (hug.types.comma_separated_list('value1,value2') == ['value1', 'value2'])

def test_comma_separated_list ( ) : assert ( hug . types . comma_separated_list ( 'value' ) == [ 'value' ] ) assert ( hug . types . comma_separated_list ( 'value1,value2' ) == [ 'value1' , 'value2' ] )
tests that hugs comma separated type correctly converts into a python list .