Esempio n. 1
0
 def test_complex_parsing(self):
     edl = editparser.parse(complex_edl_path, format='cmx3600')
     self.assertEquals(len(edl.getAllEdits()), 20)
     self.assertEquals(edl.title(), '** V799 SAMPLE LOCK EDIT (3-23-07)')
     a_edit = edl.getEdit(5)
     self.assertEquals(a_edit.get('number'), 4)
     self.assertEquals(a_edit.get('from_clip_name'), '7-2B.NEW.01')
     self.assertEquals(a_edit.get('to_clip_name'), '7-6A.NEW.01')
     self.assertEquals(a_edit.get('blend_dissolve'), True)
     self.assertEquals(a_edit.mediaIn(), editparser.TimeCode('07:07:49:10', base=25))
     self.assertEquals(a_edit.mediaOut(), editparser.TimeCode('07:07:51:14', base=25))
     self.assertEquals(a_edit.globalIn(), editparser.TimeCode('01:00:09:01', base=25))
     self.assertEquals(a_edit.globalOut(), editparser.TimeCode('01:00:11:01', base=25))
Esempio n. 2
0
 def test_basic_parsing(self):
     edl = editparser.parse(edl_path, format='cmx3600')
     self.assertEquals(len(edl.getAllEdits()), 20)
     first_edit = edl.getEdit(0)
     self.assertEquals(first_edit.get('number'), 1)
     self.assertEquals(first_edit.get('tape'), 'L_PREVIE')
     self.assertEquals(first_edit.get('channels'), ['V'])
     self.assertEquals(first_edit.get('transition'), 'C')
     self.assertEquals(first_edit.get('duration'), 0)
     self.assertEquals(first_edit.get('from_clip_name'), 'SC0020_SH010_L_C007_JH')
     self.assertEquals(first_edit.mediaIn(), editparser.TimeCode('00:00:00:01', base=25))
     self.assertEquals(first_edit.mediaOut(), editparser.TimeCode('00:00:29:09', base=25))
     self.assertEquals(first_edit.globalIn(), editparser.TimeCode('01:00:50:00', base=25))
     self.assertEquals(first_edit.globalOut(), editparser.TimeCode('01:01:19:08', base=25))
Esempio n. 3
0
 def setUp(self):
     self.edl = editparser.parse(edl_path, format='vegas')
     edit = self.edl.getEdit(7)
Esempio n. 4
0
 def test_basic_parsing(self):
     editparser.parse(edl_path, format='vegas')
Esempio n. 5
0
 def test_valid_base_parsing(self):
     edl = editparser.parse(edl_path, format='cmx3600', base=30)
     edit = edl.getEdit(0)
     self.assertEquals(edit.globalIn().base(), 30)
Esempio n. 6
0
 def test_nonexisting_edl_path(self):
     with self.assertRaises(IOError):
         editparser.parse(os.path.join(tests_folder, 'this.does.not.exist.edl'))
Esempio n. 7
0
 def setUp(self):
     self.edl = editparser.parse(edl_file, format='cmx3600')
Esempio n. 8
0
 def test_valid_format(self):
     res = editparser.parse(edl_file)
Esempio n. 9
0
 def setUp(self):
     self.edl = editparser.parse(edl_file, format='cmx3600')