sobjects/test/unittest_notification.py
branchstable
changeset 6340 470d8e828fda
parent 5556 9ab2b4c74baf
child 6415 b0b0f097a72d
--- a/sobjects/test/unittest_notification.py	Fri Sep 24 18:20:57 2010 +0200
+++ b/sobjects/test/unittest_notification.py	Fri Sep 24 18:20:59 2010 +0200
@@ -72,12 +72,12 @@
         finder = self.vreg['components'].select('recipients_finder',
                                                 self.request(), rset=urset)
         self.set_option('default-recipients-mode', 'none')
-        self.assertEquals(finder.recipients(), [])
+        self.assertEqual(finder.recipients(), [])
         self.set_option('default-recipients-mode', 'users')
-        self.assertEquals(finder.recipients(), [(u'admin@logilab.fr', 'fr')])
+        self.assertEqual(finder.recipients(), [(u'admin@logilab.fr', 'fr')])
         self.set_option('default-recipients-mode', 'default-dest-addrs')
         self.set_option('default-dest-addrs', 'abcd@logilab.fr, efgh@logilab.fr')
-        self.assertEquals(finder.recipients(), [('abcd@logilab.fr', 'en'), ('efgh@logilab.fr', 'en')])
+        self.assertEqual(finder.recipients(), [('abcd@logilab.fr', 'en'), ('efgh@logilab.fr', 'en')])
 
 
 class StatusChangeViewsTC(CubicWebTC):
@@ -88,9 +88,9 @@
         u.cw_adapt_to('IWorkflowable').fire_transition('deactivate', comment=u'yeah')
         self.failIf(MAILBOX)
         self.commit()
-        self.assertEquals(len(MAILBOX), 1)
+        self.assertEqual(len(MAILBOX), 1)
         email = MAILBOX[0]
-        self.assertEquals(email.content,
+        self.assertEqual(email.content,
                           '''
 admin changed status from <activated> to <deactivated> for entity
 'toto'
@@ -99,7 +99,7 @@
 
 url: http://testing.fr/cubicweb/cwuser/toto
 ''')
-        self.assertEquals(email.subject, 'status changed cwuser #%s (admin)' % u.eid)
+        self.assertEqual(email.subject, 'status changed cwuser #%s (admin)' % u.eid)
 
 if __name__ == '__main__':
     unittest_main()