From f7ab6cbe160afbba60537c7a830a4c65c6f0b3ea Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Tue, 25 Jun 2013 14:38:00 +0200 Subject: add tests for use_cipher_signature videos (#897) and the ability to test multiple videos per IE --- test/test_download.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/test_download.py') diff --git a/test/test_download.py b/test/test_download.py index 9af626d..067bde4 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 -- cgit v1.1