@@ -426,6 +426,23 @@ def test_to_timecode_120(self):
426
426
t = otio .opentime .RationalTime (value = 120 , rate = 120 )
427
427
self .assertEqual (timecode , otio .opentime .to_timecode (t , rate = 120 ))
428
428
429
+ def test_from_timecode_120 (self ):
430
+ timecode = "00:00:00:000"
431
+ t = otio .opentime .RationalTime (value = 0 , rate = 120 )
432
+ self .assertEqual (t , otio .opentime .from_timecode (timecode , rate = 120 ))
433
+
434
+ timecode = "00:00:00:010"
435
+ t = otio .opentime .RationalTime (value = 10 , rate = 120 )
436
+ self .assertEqual (t , otio .opentime .from_timecode (timecode , rate = 120 ))
437
+
438
+ timecode = "00:00:00:119"
439
+ t = otio .opentime .RationalTime (value = 119 , rate = 120 )
440
+ self .assertEqual (t , otio .opentime .from_timecode (timecode , rate = 120 ))
441
+
442
+ timecode = "00:00:01:000"
443
+ t = otio .opentime .RationalTime (value = 120 , rate = 120 )
444
+ self .assertEqual (t , otio .opentime .from_timecode (timecode , rate = 120 ))
445
+
429
446
def test_faulty_formatted_timecode_24 (self ):
430
447
"""
431
448
01:00:13;23 is drop-frame timecode, which only applies for
0 commit comments