Esempio n. 1
0
 def test_has_children_unlocked_with_children(self):
     node = DirectoryNode("path_part", "parent")
     node.children["child"] = "child"
     assert node.has_children_unlocked()
Esempio n. 2
0
 def test_increment_children_locked_count_with_unlocked_child(self):
     node = DirectoryNode("path_part", "parent")
     node.children["child"] = "child"
     assert node.has_children_unlocked()
     node.increment_children_locked_count()
     assert not node.has_children_unlocked()
Esempio n. 3
0
 def test_has_children_unlocked_no_children(self):
     node = DirectoryNode("path_part", "parent")
     assert not node.has_children_unlocked()