[devtools] Use TestCase.assertGreater
authorRémi Cardona <remi.cardona@logilab.fr>
Thu, 08 Oct 2015 18:09:10 +0200
changeset 10638 243e96db0004
parent 10637 a8b33789b982
child 10639 1ed205146ee2
[devtools] Use TestCase.assertGreater
devtools/testlib.py
--- a/devtools/testlib.py	Wed Sep 09 08:32:49 2015 +0200
+++ b/devtools/testlib.py	Thu Oct 08 18:09:10 2015 +0200
@@ -728,7 +728,7 @@
 
     def assertModificationDateGreater(self, entity, olddate):
         entity.cw_attr_cache.pop('modification_date', None)
-        self.assertTrue(entity.modification_date > olddate)
+        self.assertGreater(entity.modification_date, olddate)
 
     def assertMessageEqual(self, req, params, expected_msg):
         msg = req.session.data[params['_cwmsgid']]