def test_string_to_list_none(self): """Test string to list with input arg None.""" assert_equals( str_to_list(None), None )
def test_string_to_list_string_delimiter(self): """Test string to list with specified delimiter.""" assert_equals( str_to_list(' a | b | c ', delimiter='|'), ['a', 'b', 'c'] )
def test_string_to_list_string(self): """Test string to list with default delimiter (comma).""" assert_equals( str_to_list('a, b, c'), ['a', 'b', 'c'] )