[test] port to unittest2
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Tue, 28 Sep 2010 15:36:14 +0200
changeset 233 4dbd994ac6f1
parent 230 f9511e22a124
child 234 6404e2ef309b
[test] port to unittest2
test/unittest_blog.py
--- a/test/unittest_blog.py	Thu Sep 09 09:42:15 2010 +0200
+++ b/test/unittest_blog.py	Tue Sep 28 15:36:14 2010 +0200
@@ -15,19 +15,19 @@
         blog_entry_1.set_relations(entry_of=cubicweb_blog)
         blog_entry_2 = req.create_entity('BlogEntry', title=u"yes",  content=u"cubicweb yes")
         blog_entry_2.set_relations(entry_of=cubicweb_blog)
-        self.assertEquals(len(MAILBOX), 0)
+        self.assertEqual(len(MAILBOX), 0)
         self.commit()
-        self.assertEquals(len(MAILBOX), 0)
+        self.assertEqual(len(MAILBOX), 0)
         blog_entry_1.cw_adapt_to('IWorkflowable').fire_transition('publish')
         self.commit()
-        self.assertEquals(len(MAILBOX), 1)
+        self.assertEqual(len(MAILBOX), 1)
         mail = MAILBOX[0]
-        self.assertEquals(mail.subject, '[data] hop')
+        self.assertEqual(mail.subject, '[data] hop')
         blog_entry_2.cw_adapt_to('IWorkflowable').fire_transition('publish')
         self.commit()
-        self.assertEquals(len(MAILBOX), 2)
+        self.assertEqual(len(MAILBOX), 2)
         mail = MAILBOX[1]
-        self.assertEquals(mail.subject, '[data] yes')
+        self.assertEqual(mail.subject, '[data] yes')
 
 
 if __name__ == '__main__':