예제 #1
0
파일: test.py 프로젝트: sancayouth/SrtModPy
 def test_increment_fiften_seconds_to_time_line(self):
     srt = SrtMod('sub.srt', 15, 's')
     line = '00:00:03,000 --> 00:00:04,992'
     mod = srt.mod_line(line)
     self.assertEqual('00:00:18,000 --> 00:00:19,992\n', mod)
예제 #2
0
파일: test.py 프로젝트: sancayouth/SrtModPy
 def test_decrement_one_minute_to_time_line(self):
     srt = SrtMod('sub.srt', 1, 'm', 'D')
     line = '00:15:03,000 --> 00:16:04,992'
     mod = srt.mod_line(line)
     self.assertEqual('00:14:03,000 --> 00:15:04,992\n', mod)
예제 #3
0
파일: test.py 프로젝트: sancayouth/SrtModPy
 def test_decrement_ten_seconds_to_time_line(self):
     srt = SrtMod('sub.srt', 10, 's', 'd')
     line = '00:00:13,000 --> 00:00:14,992'
     mod = srt.mod_line(line)
     self.assertEqual('00:00:03,000 --> 00:00:04,992\n', mod)