コード例 #1
0
ファイル: test_effects.py プロジェクト: kornelpro51/nsextreme
 def test_split_video(self):
     """
     Test that a video file can be split and that length of the split file
     is correct.
     """
     new_filename = effects.split_video(
         movie_path('testdata'), "00:00:04", "00:00:04")
     self.failUnless(
         effects.video_length(new_filename).startswith("00:00:04"))
     return new_filename
コード例 #2
0
ファイル: test_effects.py プロジェクト: kornelpro51/nsextreme
 def test_split_video_no_duration(self):
     new_filename = effects.split_video(
         movie_path('testdata'), "00:00:04")
     self.failUnlessEqual(effects.video_length(new_filename), "00:00:11.14")
     return new_filename