drop unittest deprecation warning stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 06 Sep 2011 15:11:35 +0200
branchstable
changeset 7763 31210a2ead63
parent 7760 75d80ef524c7
child 7764 c709f6c457ff
drop unittest deprecation warning
devtools/testlib.py
--- a/devtools/testlib.py	Tue Sep 06 12:10:02 2011 +0200
+++ b/devtools/testlib.py	Tue Sep 06 15:11:35 2011 +0200
@@ -493,7 +493,7 @@
 
     def assertModificationDateGreater(self, entity, olddate):
         entity.cw_attr_cache.pop('modification_date', None)
-        self.failUnless(entity.modification_date > olddate)
+        self.assertTrue(entity.modification_date > olddate)
 
     def assertItemsEqual(self, it1, it2, *args, **kwargs):
         it1 = set(getattr(x, 'eid', x) for x in it1)