def test_complexOrdering(self): """ Verify that complex orderings tell us about their component parts. """ R = repr(IOrdering((ReprTesterItemClass.intattr.ascending, ReprTesterItemClass.txtattr.descending))) self.assertIn(repr(ReprTesterItemClass.intattr.ascending), R) self.assertIn(repr(ReprTesterItemClass.txtattr.descending), R)
def __add__(self, other): return IOrdering(other, NotImplemented)