Пример #1
0
    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")
Пример #2
0
    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")
Пример #3
0
 def run (self, params):
     createNewWiki (self._application.mainWindow)
Пример #4
0
 def run(self, params):
     createNewWiki(self._application.mainWindow)
Пример #5
0
 def __onNew(self, event):
     """
     Обработчик события создания новой вики
     """
     cmd.createNewWiki(self)