1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

tests: update the path to timestr

This commit is contained in:
Johan Andersson 2014-06-03 16:40:19 +02:00
parent 95aac29eb1
commit 4b06a32753

View File

@ -7,17 +7,17 @@
from __future__ import absolute_import
import unittest
import svtplay_dl.utils
import svtplay_dl.subtitle
class timestrTest(unittest.TestCase):
def test_1(self):
self.assertEqual(svtplay_dl.utils.timestr(1), "00:00:00,00")
self.assertEqual(svtplay_dl.subtitle.timestr(1), "00:00:00,00")
def test_100(self):
self.assertEqual(svtplay_dl.utils.timestr(100), "00:00:00,10")
self.assertEqual(svtplay_dl.subtitle.timestr(100), "00:00:00,10")
def test_3600(self):
self.assertEqual(svtplay_dl.utils.timestr(3600), "00:00:03,60")
self.assertEqual(svtplay_dl.subtitle.timestr(3600), "00:00:03,60")
def test_3600000(self):
self.assertEqual(svtplay_dl.utils.timestr(3600000), "01:00:00,00")
self.assertEqual(svtplay_dl.subtitle.timestr(3600000), "01:00:00,00")