From 71e0b3ee3427232f377c113c47949c4d86926dd2 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Tue, 24 Aug 2010 19:06:49 +0200 Subject: [PATCH] - GET decorator: use name of the original method for the wrapper method --- tests/common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/common.py b/tests/common.py index 9baedca2..dac0dcea 100644 --- a/tests/common.py +++ b/tests/common.py @@ -54,6 +54,9 @@ def GET(fullurl, **kwargs): def wrapped_test_method(*args): addExpectedRequest('GET', fullurl, **kwargs) test_method(*args) + # "rename" method otherwise we cannot specify a TestCaseClass.testName + # cmdline arg when using unittest.main() + wrapped_test_method.__name__ = test_method.__name__ return wrapped_test_method return decorate