@@ -418,6 +418,23 @@ def test_to_timecode_120(self):
418
418
t = otio .opentime .RationalTime (value = 120 , rate = 120 )
419
419
self .assertEqual (timecode , otio .opentime .to_timecode (t , rate = 120 ))
420
420
421
+ def test_from_timecode_120 (self ):
422
+ timecode = "00:00:00:000"
423
+ t = otio .opentime .RationalTime (value = 0 , rate = 120 )
424
+ self .assertEqual (t , otio .opentime .from_timecode (timecode , rate = 120 ))
425
+
426
+ timecode = "00:00:00:010"
427
+ t = otio .opentime .RationalTime (value = 10 , rate = 120 )
428
+ self .assertEqual (t , otio .opentime .from_timecode (timecode , rate = 120 ))
429
+
430
+ timecode = "00:00:00:119"
431
+ t = otio .opentime .RationalTime (value = 119 , rate = 120 )
432
+ self .assertEqual (t , otio .opentime .from_timecode (timecode , rate = 120 ))
433
+
434
+ timecode = "00:00:01:000"
435
+ t = otio .opentime .RationalTime (value = 120 , rate = 120 )
436
+ self .assertEqual (t , otio .opentime .from_timecode (timecode , rate = 120 ))
437
+
421
438
def test_faulty_formatted_timecode_24 (self ):
422
439
"""
423
440
01:00:13;23 is drop-frame timecode, which only applies for
0 commit comments