def test_path_split_all(): ll = "foo bar baz".split() path = os.path.join(*ll) eq_(list(path_split_all(path)), ll)