add tests

This commit is contained in:
Thomas Vander Stichele
2012-11-19 09:00:50 +00:00
parent 794a4c3f5c
commit fa3a6b76c7

View File

@@ -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')