From fa3a6b76c7ac22c0cd1d3d0a367c48aef7741dab Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Mon, 19 Nov 2012 09:00:50 +0000 Subject: [PATCH] add tests --- morituri/test/test_common_common.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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')