mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
tests: update the path to timestr
This commit is contained in:
parent
95aac29eb1
commit
4b06a32753
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user