예제 #1
0
def test_add_folder(modeler, mgr, model):
    modeler.tree_ui.expand_to_node("Objects")
    dia = NewNodeBaseDialog(modeler, "Add Folder",
                            modeler.get_current_server())
    args = dia.get_args()
    new_node = mgr.add_folder(*args)
    assert new_node in modeler.get_current_server().nodes.objects.get_children(
    )
예제 #2
0
 def test_add_folder(self):
     self.modeler.tree_ui.expand_to_node("Objects")
     dia = NewNodeBaseDialog(self.modeler, "Add Folder",
                             self.modeler.get_current_server())
     args = dia.get_args()
     new_node = self.mgr.add_folder(*args)
     self.assertIn(
         new_node,
         self.modeler.get_current_server().nodes.objects.get_children())
예제 #3
0
def test_add_folder(modeler, mgr, model):
    modeler.tree_ui.expand_to_node("Objects")
    dia = NewNodeBaseDialog(modeler, "Add Folder", modeler.get_current_server())
    args = dia.get_args()
    new_node = mgr.add_folder(*args)
    assert new_node in modeler.get_current_server().nodes.objects.get_children()