def test_find_edition(self): """ Tests list_editions. """ cdli = CDLICorpus() cdli.parse_file(SAMPLE_TEXT) output = cdli.list_editions() goal = ['ARM 01, 001', 'ARM 01, 002'] self.assertEqual(output, goal)
def test_find_edition(self): """ Tests list_editions. """ cdli = CDLICorpus() cdli.parse_file(SAMPLE_TEXT) output = cdli.list_editions() goal = ['ARM 01, 001', 'ARM 01, 002'] self.assertEqual(output, goal)
def test_find_edition(self): """ Tests list_editions. """ f_i = FileImport('two_text.txt') f_i.read_file() cdli = CDLICorpus() cdli.parse_file(f_i.file_lines) output = cdli.list_editions() goal = ['ARM 01, 001', 'ARM 01, 002'] self.assertEqual(output, goal)