예제 #1
0
파일: test.py 프로젝트: sancayouth/SrtModPy
 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)
예제 #2
0
파일: test.py 프로젝트: sancayouth/SrtModPy
 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)