@lolcat_decorator1
@loldog_decorator2
@lolrat_decorator3
def lolanimal(*args, **kwargs):
....
I am sure I will unit-test those decorators separately. But these decorators will do stuff to the parameters passed to lolanimal
first, and then lolanimal
will do stuff to those modified parameters (one of those decorators may insert new keyword arguments to **kwargs
.)
So what's the best way to mock it?
Thanks