Decorator for printing unit test name

1
2
3
4
5
def print_test_name(f):
    def fn(self):
        print f.__name__
	f(self)
    return fn

Comments

(Forgotten your password?)