def test_topics(self): path = os.path.join(testdir(), 'help.txt') id = 'topic1' title = 'Topic1' parentPath = "" topic1 = OnlineHelpTopic(id, title, path, parentPath) self.onlinehelp['topic1'] = topic1 id = 'topic1_1' title = 'Topic1_1' parentPath = 'topic1' topic1_1 = OnlineHelpTopic(id, title, path, parentPath) topic1['topic1_1'] = topic1_1 id = 'topic1_1_1' title = 'Topic1_1_1' parentPath = 'topic1/topic1_1' topic1_1_1 = OnlineHelpTopic(id, title, path, parentPath) topic1_1['topic1_1_1'] = topic1_1_1 id = 'topic2' title = 'Topic2' parentPath = "" topic2 = OnlineHelpTopic(id, title, path, parentPath) self.onlinehelp['topic2'] = topic2 view = OnlineHelpTopicTreeView treeView = view(self.rootFolder, TestRequest()).getTopicTree check_xml(treeView(), util.read_output('test2.xml'))
def test_topics(self): path = os.path.join(testdir(), 'help.txt') id = 'topic1' title = 'Topic1' parentPath = "" topic1 = OnlineHelpTopic(id, title, path, parentPath) self.onlinehelp['topic1'] = topic1 id = 'topic1_1' title = 'Topic1_1' parentPath = 'topic1' topic1_1 = OnlineHelpTopic(id, title, path, parentPath) topic1['topic1_1'] = topic1_1 id = 'topic1_1_1' title = 'Topic1_1_1' parentPath = 'topic1/topic1_1' topic1_1_1 = OnlineHelpTopic(id, title, path, parentPath) topic1_1['topic1_1_1'] = topic1_1_1 id = 'topic2' title = 'Topic2' parentPath = "" topic2 = OnlineHelpTopic(id, title, path, parentPath) self.onlinehelp['topic2'] = topic2 view = OnlineHelpTopicTreeView treeView = view(self.rootFolder, TestRequest()).getTopicTree check_xml(treeView(), util.read_output('test2.xml'))
def test_onlinehelp(self): view = OnlineHelpTopicTreeView treeView = view(self.rootFolder, TestRequest()).getTopicTree check_xml(treeView(), util.read_output('test1.xml'))
def test_onlinehelp(self): view = OnlineHelpTopicTreeView treeView = view(self.rootFolder, TestRequest()).getTopicTree check_xml(treeView(), util.read_output('test1.xml'))