Files

14 lines
244 B
Python
Raw Permalink Normal View History

2026-07-13 15:37:05 +08:00
from django.test import TestCase
# Create your tests here.
def debug(func):
def wrapper():
print("[DEBUG]: enter {}()".format(func.__name__))
return func()
return wrapper
@debug
def hello():
print("hello")
hello()