def test_is_removable4(self): node = FileNode("part", "saver", "parent", "rel_path") node.waiting_sync_node = 42 assert not node.is_removable()
def test_is_removable2(self): fake_saver = FakeIndexSaver() node = FileNode("part", fake_saver, "parent", "rel_path") node.set_hash("local", "remote") assert not node.is_removable()
def test_is_removable3(self): node = FileNode("part", "saver", "parent", "rel_path") node.self_waiting = True assert not node.is_removable()
def test_is_removable1(self): node = FileNode("part", "saver", "parent", "rel_path") assert node.is_removable()