Esempio n. 1
0
 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)
Esempio n. 2
0
 def __add__(self, other):
     return IOrdering(other, NotImplemented)