How should functions be tested for equality or identity?
Workaround for equality of nested functions Why don't methods have reference equality?
Python Lists and Equality Zero equality in python Identity of class methods sqlalchemy id equality vs reference equality How to check class equality in Python 2.5? check files for equality How can I make a Python object always return true for an equality test? Set "in" operator: uses equality or identity? Return identity column values python identity dictionary Why does string equality not working in this Python code as expected? Is there an identity function? List equality in Python test equality of 2 string on python error Python dictionary Equality Issue Why does the identity of a method does change? String equality in python Equality of objects in Python Python Equality Check Difference Test equality of two functions in python Using re for equality identity versus equality for None in Python Should enum instances be compared by identity or equality? How to test Python objects for non-equality? Python object identity Do something to two objects and test results for equality Unittest: How to ensure type equality, not just value equality? Equality override issue