If I define my function as follows:
def myfunc(arg1, arg2): pass
then myfunc == myfunc will return True
But functools.partial(myfunc, arg2=1) == functools.partial(myfunc, arg2=1) will return False .
For unittest purpose, is there an easy way to check if a partial function is expected?
Lydia source share