[SCM] morituri/master: add tests

js at users.alioth.debian.org js at users.alioth.debian.org
Sun Oct 19 20:09:44 UTC 2014


The following commit has been merged in the master branch:
commit fa3a6b76c7ac22c0cd1d3d0a367c48aef7741dab
Author: Thomas Vander Stichele <thomas (at) apestaart (dot) org>
Date:   Mon Nov 19 09:00:50 2012 +0000

    add tests

diff --git a/morituri/test/test_common_common.py b/morituri/test/test_common_common.py
index 7b178b1..e68dbbd 100644
--- a/morituri/test/test_common_common.py
+++ b/morituri/test/test_common_common.py
@@ -17,3 +17,11 @@ class ShrinkTestCase(tcommon.TestCase):
         self.failUnless(os.path.splitext(path)[0].startswith(
             os.path.splitext(shorter)[0]))
         self.failIfEquals(path, shorter)
+
+class FramesTestCase(tcommon.TestCase):
+    def testFrames(self):
+        self.assertEquals(common.framesToHMSF(123456), '00:27:26.06')
+
+class FormatTimeTestCase(tcommon.TestCase):
+    def testFormatTime(self):
+        self.assertEquals(common.formatTime(7202), '02:00:02.000')

-- 
morituri packaging



More information about the pkg-multimedia-commits mailing list