def fileParts(self): partList = RewriteOdf.universalFileChomper('largeHtml.html') # check for the head - with meta info and css/js links if not os.path.exists('header1.html'): raise NoFileError('There\'s no header1.html file ...') if not os.path.exists('part1-file1.html') raise NoFileError('No part1 to HTML file') if not os.path.exists('part2-file1.html') raise NoFileError('No part2 to HTML file') # convert a stupidly long Odf file to test this... + 4000 lines. testList = ['header1.html','part1-file1.html', 'part2-file1.html'] assertEquals(partList, self.testList) return testList
def testPort(self, testList): RewriteOdf.sendHtmlToTab(testList)