示例#1
0
 def test_is_removable_with_waiting_node(self):
     node = DirectoryNode("path_part", "parent")
     node.children["child"] = "child"
     assert not node.is_removable()
示例#2
0
 def test_is_removable_with_children(self):
     node = DirectoryNode("path_part", "parent")
     node.waiting_nodes.append("waiting_node")
     assert not node.is_removable()
示例#3
0
 def test_is_removable(self):
     node = DirectoryNode("path_part", "parent")
     assert node.is_removable()