def test_table_of_contents(self): """ Tests toc. """ cdli = CDLICorpus() cdli.parse_file(SAMPLE_TEXT) output = cdli.toc() goal = ['Pnum: P254202, Edition: ARM 01, 001, length: 23 line(s)', 'Pnum: P254203, Edition: ARM 01, 002, length: 28 line(s)'] self.assertEqual(output, goal)
def test_table_of_contents(self): """ Tests toc. """ cdli = CDLICorpus() cdli.parse_file(SAMPLE_TEXT) output = cdli.toc() goal = [ 'Pnum: P254202, Edition: ARM 01, 001, length: 23 line(s)', 'Pnum: P254203, Edition: ARM 01, 002, length: 28 line(s)' ] self.assertEqual(output, goal)
def test_table_of_contents(self): """ Tests toc. """ f_i = FileImport('two_text.txt') f_i.read_file() cdli = CDLICorpus() cdli.parse_file(f_i.file_lines) output = cdli.toc() goal = ['Pnum: P254202, Edition: ARM 01, 001, length: 23 line(s)', 'Pnum: P254203, Edition: ARM 01, 002, length: 28 line(s)'] self.assertEqual(output, goal)