Message398851
Like the title says, TestCase.assertSequenceEqual does not behave like TestCase.assertEqual where it uses TestCase._getAssertEqualityFunc. Instead, TestCase.assertSequenceEqual uses `item1 != item2`. That way I can do something like this:
```
def test_stuff(self):
self.addTypeEqualityFunc(
MyObject,
comparison_method_which_compares_how_i_want,
)
self.assertListEqual(
get_list_of_objects(),
[MyObject(...), MyObject(...)],
)
``` |
|
Date |
User |
Action |
Args |
2021-08-03 20:24:40 | Rarity | set | recipients:
+ Rarity |
2021-08-03 20:24:40 | Rarity | set | messageid: <1628022280.67.0.522628726203.issue44819@roundup.psfhosted.org> |
2021-08-03 20:24:40 | Rarity | link | issue44819 messages |
2021-08-03 20:24:40 | Rarity | create | |
|