mirror of
https://github.com/iluvcapra/pycmx.git
synced 2025-12-31 17:00:53 +00:00
Adding some test cases
This commit is contained in:
BIN
tests/.test_parse.py.swp
Normal file
BIN
tests/.test_parse.py.swp
Normal file
Binary file not shown.
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
1192
tests/edls/INS4_R1_010417.edl
Normal file
1192
tests/edls/INS4_R1_010417.edl
Normal file
File diff suppressed because it is too large
Load Diff
1089
tests/edls/STP R1 v082517.edl
Normal file
1089
tests/edls/STP R1 v082517.edl
Normal file
File diff suppressed because it is too large
Load Diff
1135
tests/edls/ToD_R4_LOCK3.1_030618_Video.edl
Normal file
1135
tests/edls/ToD_R4_LOCK3.1_030618_Video.edl
Normal file
File diff suppressed because it is too large
Load Diff
20
tests/test_parse.py
Normal file
20
tests/test_parse.py
Normal 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 )
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user