aboutsummaryrefslogtreecommitdiff
path: root/test/test_dailymotion_subtitles.py
diff options
context:
space:
mode:
authorrzhxeo <rzhxeo@users.noreply.github.com>2013-09-30 21:39:58 -0700
committerrzhxeo <rzhxeo@users.noreply.github.com>2013-09-30 21:39:58 -0700
commitc0de39e6d42d8de6a77768b2a96570fd8df8ad36 (patch)
treeef10e4ee36c43121490ae5bf89275c1793a30f88 /test/test_dailymotion_subtitles.py
parenta921f40799d2ecb4be53b3241d2dbfc80f804d73 (diff)
parent722076a123c60ed6d5a978c4bc2609f46c8e3ee9 (diff)
Merge pull request #2 from rg3/master
Update
Diffstat (limited to 'test/test_dailymotion_subtitles.py')
-rw-r--r--test/test_dailymotion_subtitles.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_dailymotion_subtitles.py b/test/test_dailymotion_subtitles.py
index bcd9f79f6..83c65d57e 100644
--- a/test/test_dailymotion_subtitles.py
+++ b/test/test_dailymotion_subtitles.py
@@ -40,6 +40,7 @@ class TestDailymotionSubtitles(unittest.TestCase):
subtitles = self.getSubtitles()
self.assertEqual(md5(subtitles['fr']), '594564ec7d588942e384e920e5341792')
def test_allsubtitles(self):
+ self.DL.params['writesubtitles'] = True
self.DL.params['allsubtitles'] = True
subtitles = self.getSubtitles()
self.assertEqual(len(subtitles.keys()), 5)
@@ -54,6 +55,7 @@ class TestDailymotionSubtitles(unittest.TestCase):
self.assertTrue(len(subtitles.keys()) == 0)
def test_nosubtitles(self):
self.url = 'http://www.dailymotion.com/video/x12u166_le-zapping-tele-star-du-08-aout-2013_tv'
+ self.DL.params['writesubtitles'] = True
self.DL.params['allsubtitles'] = True
subtitles = self.getSubtitles()
self.assertEqual(len(subtitles), 0)