コード例 #1
0
ファイル: index_node_test.py プロジェクト: Bajoo/client-pc
 def test_has_children_unlocked_with_children(self):
     node = DirectoryNode("path_part", "parent")
     node.children["child"] = "child"
     assert node.has_children_unlocked()
コード例 #2
0
ファイル: index_node_test.py プロジェクト: Bajoo/client-pc
 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()
コード例 #3
0
ファイル: index_node_test.py プロジェクト: Bajoo/client-pc
 def test_has_children_unlocked_no_children(self):
     node = DirectoryNode("path_part", "parent")
     assert not node.has_children_unlocked()