Created
August 14, 2014 02:57
-
-
Save icoxfog417/568b8415025aaaafc2e5 to your computer and use it in GitHub Desktop.
python decorator to print mothod name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def print_title(test_case): | |
def wrapper(*args, **kwargs): | |
print("@" + test_case.__name__ + "-------------------------------------------") | |
return test_case(*args, **kwargs) | |
return wrapper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment