def test_decrement_sixty_seconds_to_time(self): srt = SrtMod('sub.srt', 60, 'S', 'D') part = '00:01:03,000' begin = re.match(r'(\d+):(\d+):(\d+),(\d{3})', part) mod = srt.mod_time(begin) self.assertEqual('00:00:03,000', mod)
def test_increment_fiften_seconds_to_time(self): srt = SrtMod('sub.srt', 15) part = '00:00:03,000' begin = re.match(r'(\d+):(\d+):(\d+),(\d{3})', part) mod = srt.mod_time(begin) self.assertEqual('00:00:18,000', mod)