Example #1
0
 def test_setSecondsWith100ms(self):
     fto = FrameTime(25, seconds=0)
     full_seconds = 3661.1
     fto.__setSeconds__(full_seconds)
     frames = full_seconds * 25
     self.compare(fto, 25, frames, full_seconds, 1, 1, 1, 100)
Example #2
0
 def test_setSecondsWithNegativeSecondsRaisesAnError(self):
     fto = FrameTime(25, seconds=0)
     with self.assertRaises(ValueError):
         fto.__setSeconds__(-1)