Message398911
| Author |
Rarity |
| Recipients |
Rarity, ezio.melotti, iritkatriel, jack__d, michael.foord, rbcollins |
| Date |
2021年08月04日.16:34:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1628094846.13.0.638973274023.issue44819@roundup.psfhosted.org> |
| In-reply-to |
| Content |
I've attached an example of what I want. It contains a class, a function to be tested, and a test class which tests the function.
What TestCase.addTypeEqualityFunc feels like it offers is a chance to compare objects however I feel like is needed for each test. Sometimes all I want is to compare the properties of the objects, and maybe not even all of the properties! When I have a list of these objects and I've added an equality function for the object, I was expecting the test class to use my equality function when comparing objects in the list. |
|