def test_has_children_unlocked_with_children(self): node = DirectoryNode("path_part", "parent") node.children["child"] = "child" assert node.has_children_unlocked()
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()
def test_has_children_unlocked_no_children(self): node = DirectoryNode("path_part", "parent") assert not node.has_children_unlocked()