Adding some test cases

This commit is contained in:
Jamie Hardt
2018-11-30 15:44:24 -08:00
parent 754abb1995
commit d976f22b92
6 changed files with 3436 additions and 0 deletions

BIN
tests/.test_parse.py.swp Normal file

Binary file not shown.

0
tests/__init__.py Normal file
View File

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

20
tests/test_parse.py Normal file
View File

@@ -0,0 +1,20 @@
from unittest import TestCase
import pycmx
class TestParse(TestCase):
def test_edls(self):
files = ["INS4_R1_010417.edl" ,
"STP R1 v082517.edl",
"ToD_R4_LOCK3.1_030618_Video.edl"
]
counts = [ 287, 250 , 376 ]
for fn, count in zip(files, counts):
events = pycmx.parse_cmx3600("tests/edls/" + fn )
self.assertTrue( len(events) == count )