def testCreate_01(self): Tester.dialogTester.append(self._selectFile) createNewWiki(self.application.mainWindow) self.assertEqual(Tester.dialogTester.count, 0) self.assertIsNotNone(self.application.wikiroot) self.assertEqual(len(self.application.wikiroot.children), 1) self.assertNotEqual(len(self.application.wikiroot.children[0].content), 1) self.assertEqual(self.application.wikiroot.children[0].getTypeString(), "wiki")
def run (self, params): createNewWiki (self._application.mainWindow)
def run(self, params): createNewWiki(self._application.mainWindow)
def __onNew(self, event): """ Обработчик события создания новой вики """ cmd.createNewWiki(self)