summaryrefslogtreecommitdiffhomepage
path: root/test/test_subtitles.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2015-02-15 14:59:00 +0100
committerJaime Marquínez Ferrándiz <[email protected]>2015-02-15 15:01:07 +0100
commit8fb474fb17a64ff2aa9f6315ebbc99ae7938c4e1 (patch)
treebeda9e2542194052aa915d1782c17fc1fb410be2 /test/test_subtitles.py
parentf813928e4b669627007b772c9b150eed135b18be (diff)
downloadyoutube-dl-8fb474fb17a64ff2aa9f6315ebbc99ae7938c4e1.tar.gz
youtube-dl-8fb474fb17a64ff2aa9f6315ebbc99ae7938c4e1.zip
[test/subtitles] Fix some tests
The checksym for the CeskaTelevize subtitles has changed again, so we just test that it has a reasonable length.
Diffstat (limited to 'test/test_subtitles.py')
-rw-r--r--test/test_subtitles.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_subtitles.py b/test/test_subtitles.py
index 3e329438f..bcc69a778 100644
--- a/test/test_subtitles.py
+++ b/test/test_subtitles.py
@@ -138,7 +138,7 @@ class TestDailymotionSubtitles(BaseTestSubtitles):
self.DL.params['writesubtitles'] = True
self.DL.params['allsubtitles'] = True
subtitles = self.getSubtitles()
- self.assertEqual(len(subtitles.keys()), 5)
+ self.assertTrue(len(subtitles.keys()) >= 6)
def test_list_subtitles(self):
self.DL.expect_warning('Automatic Captions not supported by this server')
@@ -334,7 +334,7 @@ class TestCeskaTelevizeSubtitles(BaseTestSubtitles):
self.DL.params['allsubtitles'] = True
subtitles = self.getSubtitles()
self.assertEqual(set(subtitles.keys()), set(['cs']))
- self.assertEqual(md5(subtitles['cs']), 'cc3957b2c6dff1db71e5f2e83d467480')
+ self.assertTrue(len(subtitles['cs']) > 20000)
def test_nosubtitles(self):
self.DL.expect_warning('video doesn\'t have subtitles')