Beispiel #1
0
    def testLoad_02(self):
        path = u"../test/samplewiki"
        Application.getEvent('onTreeUpdate').bind(self.treeUpdate)

        self.assertFalse(self.isTreeUpdate)
        WikiDocument.load(path)

        self.assertFalse(self.isTreeUpdate)
        self.assertEqual(self.treeUpdateSender, None)
        self.assertEqual(self.treeUpdateCount, 0)

        Application.getEvent('onTreeUpdate').unbind(self.treeUpdate)
Beispiel #2
0
    def testLoad_02 (self):
        path = u"../test/samplewiki"
        Application.getEvent ('onTreeUpdate').bind (self.treeUpdate)

        self.assertFalse(self.isTreeUpdate)
        WikiDocument.load (path)

        self.assertFalse (self.isTreeUpdate)
        self.assertEqual (self.treeUpdateSender, None)
        self.assertEqual (self.treeUpdateCount, 0)

        Application.getEvent ('onTreeUpdate').unbind (self.treeUpdate)