This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients eric.araujo, ezio.melotti, flox, gregory.p.smith, michael.foord
Date 2010-02-02.06:35:41
SpamBayes Score 5.6107706e-07
Marked as misclassified No
Message-id <1265092544.71.0.0721177790958.issue7832@psf.upfronthosting.co.za>
In-reply-to
Content
Just out of curiosity, what are the use cases for assertSameElements? If one has two objects, doesn't care about the order and the duplicates then these two objects are most likely sets and assertSetEqual can be used instead.
OTOH checking if two sequences have the same elements regardless of their order seems more common, and I don't see any method that does it (I was expecting assertSameElements to do that).

I would be -0 to add another method -- the API is already too confusing IMHO (is not so easy to remember if it's assertSameList, assertSameLists, assertListEqual, assertListsEqual; also note the 'assertItemsEqual' in msg98697, 'assertItemEquals' in msg98717).
Maybe a check_order arg in assertSequenceEqual (or was it assertSameSequence? ;) would be better, or at least more explicit.
History
Date User Action Args
2010-02-02 06:35:45ezio.melottisetrecipients: + ezio.melotti, gregory.p.smith, eric.araujo, michael.foord, flox
2010-02-02 06:35:44ezio.melottisetmessageid: <1265092544.71.0.0721177790958.issue7832@psf.upfronthosting.co.za>
2010-02-02 06:35:42ezio.melottilinkissue7832 messages
2010-02-02 06:35:41ezio.melotticreate