예제 #1
0
 def test_create_entrylist_mult_textlines(self):
     elist = create_entrylist(self.mult_textlines_file)
     expected = ['1', '00:00:00,000 --> 00:00:02,000', "[D. Evans] Let's get started with programming.", '',
                 '2', '00:00:02,000 --> 00:00:05,000', 'Programming is really the core of computer science.',
                    'Programmers are not aliens', 'even though they have strange habits,',
                    'like mumbling to themselves while working.', '',
                 '3', '00:00:05,000 --> 00:00:08,000', 'Most machines are designed to do just one thing.', '']
     self.assertEquals(expected,elist)
예제 #2
0
 def test_create_entrylist(self):
     expected = ['1','00:00:00,000 --> 00:00:02,000', "[D. Evans] Let's get started with programming.",'',
                 '2', '00:00:02,000 --> 00:00:05,000','Programming is really the core of computer science.','',
                 '3','00:00:05,000 --> 00:00:08,000','Most machines are designed to do just one thing.','']
     e_list = create_entrylist(self.filename)
     self.assertEquals(expected,e_list)