Example #1
0
 def test_setTime(self):
     fto = FrameTime(25, time="0:00:00.000")
     time = "1:01:01.234"
     fto.__setTime__(time)
     full_seconds = 3661.234
     frames = full_seconds * 25
     self.compare(fto, 25, frames, full_seconds, 1, 1, 1, 234)
Example #2
0
 def test_setIncorrectlyFormattedTimeRaisesAnError(self):
     fto = FrameTime(25, time="0:00:00.000")
     with self.assertRaises(ValueError):
         fto.__setTime__("1:12;44-999")