def test_corce_to_list_splits(value): """Ensure words joined with any of the value chars are split by coerce.""" phrase = "In the beginning were the Words".split() assert configure.coerce_to_list(value.join(phrase)) == [ "In", "Words", "beginning", "the", "the", "were", ]
def test_coerce_to_list_sorts(): """Ensure coerce to list returns a sorted list if it's already a list.""" assert configure.coerce_to_list(["foo", "bar", "baz", "potato"]) == [ "bar", "baz", "foo", "potato" ]
def test_coerce_to_list_sorts(): """Ensure coerce to list returns a sorted list if it's already a list.""" assert configure.coerce_to_list(["foo", "bar", "baz", "potato" ]) == ["bar", "baz", "foo", "potato"]