def test_simple_path_is_split_correctly(self): fp = u'lib/ansible/foo/bar' prefixes = make_prefixes(fp) assert len(prefixes) == len(fp) assert fp in prefixes assert prefixes[0] == fp assert prefixes[-1] == u'l'