In the past, I extended unittest.TestCase for my project and added
things like
def assertSetEquals(self, left, right, msg)
self.assertEquals(set(self), set(right),
msg or ('Iterables %s and %r do not contain different elements' %
(left, right))
I guess you could implement the assertions mentioned below using
list() constructors and set operations.
HTH
Manuel
def testUsingComparatorsInAssertions(self):
self.assertEquals(mox.IsA(str), "test string)
... or for your example ...
self.assertEquals(mox.SameElementsAs([123, 456, 789]), revisions)
I'm not sure if this is as expressive as you'd like, but it gets the
job done. :)
--
Steve Middlekauff
smid...@gmail.com