DeprecationWarning: Please use assertEqual instead.
authorLaurent Peuch <cortex@worlddomination.be>
Fri, 12 Apr 2019 11:54:42 +0200
changeset 12573 9b883489279f
parent 12572 9850a9b86c92
child 12574 6ccf8fda063f
DeprecationWarning: Please use assertEqual instead.
cubicweb/test/unittest_utils.py
--- a/cubicweb/test/unittest_utils.py	Fri Apr 12 17:25:40 2019 +0200
+++ b/cubicweb/test/unittest_utils.py	Fri Apr 12 11:54:42 2019 +0200
@@ -167,7 +167,7 @@
                           'permanentcount': 5})
         keys = sorted(c)
         for x in range(10):
-            self.assertEquals(x, keys[x])
+            self.assertEqual(x, keys[x])
 
     def test_items(self):
         """
@@ -188,8 +188,8 @@
                           'permanentcount': 5})
         content = sorted(c.items())
         for x in range(10):
-            self.assertEquals(x, content[x][0])
-            self.assertEquals(x, content[x][1])
+            self.assertEqual(x, content[x][0])
+            self.assertEqual(x, content[x][1])
 
 
 class UStringIOTC(TestCase):