aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIsmaël Mejía <iemejia@gmail.com>2013-11-05 12:00:13 +0100
committerIsmaël Mejía <iemejia@gmail.com>2013-11-05 12:00:13 +0100
commit4ed3e51080dea651b3db8889b0c8f2e40d261075 (patch)
treeb11a60728cd1c1138e081fe1c4be62866e8f5230 /test
parent38fcd4597aac71c20583c7869479727b6065a9bb (diff)
[ted] fixed error in case of no subtitles present
I created a test, but I leave it commented since TED videos get new subtitles frequently.
Diffstat (limited to 'test')
-rw-r--r--test/test_ted_subtitles.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_ted_subtitles.py b/test/test_ted_subtitles.py
index 3283253ab..a0dd7eeed 100644
--- a/test/test_ted_subtitles.py
+++ b/test/test_ted_subtitles.py
@@ -51,6 +51,12 @@ class TestTedSubtitles(unittest.TestCase):
self.DL.params['subtitleslang'] = ['en']
subtitles = self.getSubtitles()
self.assertTrue(len(subtitles.keys()) == 0)
+ # def test_nosubtitles(self):
+ # self.DL.expect_warning(u'video doesn\'t have subtitles')
+ # self.url = 'http://www.ted.com/talks/rodrigo_canales_the_deadly_genius_of_drug_cartels.html'
+ # self.DL.params['writesubtitles'] = True
+ # self.DL.params['allsubtitles'] = True
+ # subtitles = self.getSubtitles()
def test_multiple_langs(self):
self.DL.params['writesubtitles'] = True
langs = ['es', 'fr', 'de']