equal
deleted
inserted
replaced
493 |
493 |
494 def assertModificationDateGreater(self, entity, olddate): |
494 def assertModificationDateGreater(self, entity, olddate): |
495 entity.cw_attr_cache.pop('modification_date', None) |
495 entity.cw_attr_cache.pop('modification_date', None) |
496 self.failUnless(entity.modification_date > olddate) |
496 self.failUnless(entity.modification_date > olddate) |
497 |
497 |
|
498 def assertItemsEqual(self, it1, it2, *args, **kwargs): |
|
499 it1 = set(getattr(x, 'eid', x) for x in it1) |
|
500 it2 = set(getattr(x, 'eid', x) for x in it2) |
|
501 super(CubicWebTC, self).assertItemsEqual(it1, it2, *args, **kwargs) |
498 |
502 |
499 # workflow utilities ####################################################### |
503 # workflow utilities ####################################################### |
500 |
504 |
501 def assertPossibleTransitions(self, entity, expected): |
505 def assertPossibleTransitions(self, entity, expected): |
502 transitions = entity.cw_adapt_to('IWorkflowable').possible_transitions() |
506 transitions = entity.cw_adapt_to('IWorkflowable').possible_transitions() |