예제 #1
0
 def _do_test_sorted_tree_items_name_order(self, sorted_tree_items):
     self.assertEqual([
       TreeEntry('a', stat.S_IFDIR,
                 'd80c186a03f423a81b39df39dc87fd269736ca86'),
       TreeEntry('a.c', 0100755, 'd80c186a03f423a81b39df39dc87fd269736ca86'),
       TreeEntry('a/c', stat.S_IFDIR,
                 'd80c186a03f423a81b39df39dc87fd269736ca86'),
       ], list(sorted_tree_items(_TREE_ITEMS, True)))
예제 #2
0
 def _do_test_sorted_tree_items_name_order(self, sorted_tree_items):
     self.assertEqual([
       TreeEntry('a', stat.S_IFDIR,
                 'd80c186a03f423a81b39df39dc87fd269736ca86'),
       TreeEntry('a.c', 0o100755, 'd80c186a03f423a81b39df39dc87fd269736ca86'),
       TreeEntry('a/c', stat.S_IFDIR,
                 'd80c186a03f423a81b39df39dc87fd269736ca86'),
       ], list(sorted_tree_items(_TREE_ITEMS, True)))
예제 #3
0
 def do_sort(entries):
     return list(sorted_tree_items(entries, False))
예제 #4
0
 def do_sort(entries):
     return list(sorted_tree_items(entries, False))