devtools/testlib.py
changeset 10638 243e96db0004
parent 10219 eacb8ea38bf5
child 10639 1ed205146ee2
equal deleted inserted replaced
10637:a8b33789b982 10638:243e96db0004
   726             else:
   726             else:
   727                 erschema.set_action_permissions(action, permissions)
   727                 erschema.set_action_permissions(action, permissions)
   728 
   728 
   729     def assertModificationDateGreater(self, entity, olddate):
   729     def assertModificationDateGreater(self, entity, olddate):
   730         entity.cw_attr_cache.pop('modification_date', None)
   730         entity.cw_attr_cache.pop('modification_date', None)
   731         self.assertTrue(entity.modification_date > olddate)
   731         self.assertGreater(entity.modification_date, olddate)
   732 
   732 
   733     def assertMessageEqual(self, req, params, expected_msg):
   733     def assertMessageEqual(self, req, params, expected_msg):
   734         msg = req.session.data[params['_cwmsgid']]
   734         msg = req.session.data[params['_cwmsgid']]
   735         self.assertEqual(expected_msg, msg)
   735         self.assertEqual(expected_msg, msg)
   736 
   736