In the past, I extended unittest.TestCase for my project and added
def assertSetEquals(self, left, right, msg)
msg or ('Iterables %s and %r do not contain different elements' %
I guess you could implement the assertions mentioned below using
list() constructors and set operations.
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. :)