Martin Panter added the comment:
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?
----------
nosy: +martin.panter
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue27132>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com