]> git.parisson.com Git - timeside.git/commitdiff
timeside/tests/testdecoding.py: update file size for ogg and mp3
authorPaul Brossier <piem@piem.org>
Fri, 15 Apr 2011 08:28:22 +0000 (08:28 +0000)
committerPaul Brossier <piem@piem.org>
Fri, 15 Apr 2011 08:28:22 +0000 (08:28 +0000)
timeside/tests/testdecoding.py

index 69c2c8a7f4adfbf61392ad4f822dc68e5b6de911..bbc9a2abd0c13f8603cdff40503d77ac6af55a61 100644 (file)
@@ -44,7 +44,12 @@ class TestLowLevel(TestCase):
             if eod: break
 
         # FIXME compute actual number of frames from file
-        self.assertEquals(totalframes, 352801)
+        if os.path.splitext(self.source)[-1].lower() == '.mp3':
+            self.assertEquals(totalframes, 355969)
+        elif os.path.splitext(self.source)[-1].lower() == '.ogg':
+            self.assertEquals(totalframes, 352833)
+        else:
+            self.assertEquals(totalframes, 352801)
 
 if __name__ == '__main__':
     unittest.main(testRunner=TestRunner())