aboutsummaryrefslogtreecommitdiff
path: root/test/test_download.py
diff options
context:
space:
mode:
authorFilippo Valsorda <filippo.valsorda@gmail.com>2013-06-25 14:38:00 +0200
committerFilippo Valsorda <filippo.valsorda@gmail.com>2013-06-25 14:38:00 +0200
commitf7ab6cbe160afbba60537c7a830a4c65c6f0b3ea (patch)
treee65afa7a40da191a40de732849712f3ae432384d /test/test_download.py
parent577d02370d3dc6b23971962e9339d9302a7ef0ba (diff)
add tests for use_cipher_signature videos (#897) and the ability to test multiple videos per IE
Diffstat (limited to 'test/test_download.py')
-rw-r--r--test/test_download.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_download.py b/test/test_download.py
index 9af626dca..067bde4bb 100644
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -153,9 +153,11 @@ def generator(test_case):
return test_template
### And add them to TestDownload
-for test_case in defs:
+for n, test_case in enumerate(defs):
test_method = generator(test_case)
test_method.__name__ = "test_{0}".format(test_case["name"])
+ if getattr(TestDownload, test_method.__name__, False):
+ test_method.__name__ = "test_{0}_{1}".format(test_case["name"], n)
setattr(TestDownload, test_method.__name__, test_method)
del test_method