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'
示例#2
0
 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'