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 martin.panter
Recipients maciej.szulik, martin.panter, r.david.murray, serhiy.storchaka
Date 2016-05-26.23:28:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464305280.07.0.38432994137.issue27132@psf.upfronthosting.co.za>
In-reply-to
Content
Maybe a generic superset test would be good enough:

def assertSuperset(self, superset, subset):
    # Expand for friendlier failure handling
    self.assertTrue(all(e in superset for e in subset))

self.assertSuperset("Error message", ("mess", "or me"))

Or is that too obscure, treating a string as a set of substrings?
History
Date User Action Args
2016-05-26 23:28:00martin.pantersetrecipients: + martin.panter, r.david.murray, serhiy.storchaka, maciej.szulik
2016-05-26 23:28:00martin.pantersetmessageid: <1464305280.07.0.38432994137.issue27132@psf.upfronthosting.co.za>
2016-05-26 23:28:00martin.panterlinkissue27132 messages
2016-05-26 23:28:00martin.pantercreate