예제 #1
0
 def test_find_leaf5(self):
     tree = FileSystemTree('TestFolder')
     leaf = tree.find_leaf((0, 0, 1100, 900), (90, 800))
     self.assertEqual(leaf._root, 'T3.txt')
예제 #2
0
 def test_find_leaf3(self):
     tree = FileSystemTree('TestFolder\\F1')
     leaf = tree.find_leaf((0, 0, 1100, 900), (600, 500))
     self.assertEqual(leaf._root, 'T2.txt')