Decorated function
def f1(func):
def wrapper(*args, **kwargs):
print('x')
v = func(*args, **kwargs)
print('z')
return v
return wrapper
@f1
def f(a, b=7):
print(a, b)
@f1
def add(x, y):
return x+y
print(add(7,3))
import codewars_test as test
# TODO Write tests
import solution # or from solution import example
# test.assert_equals(actual, expected, [optional] message)
@test.describe("Example")
def test_group():
@test.it("test case")
def test_case():
test.assert_equals(1 + 1, 2)