[hookstests] change got/expected order
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 10 Jun 2014 16:18:46 +0200
changeset 10085 dc315002a2d4
parent 10084 eb3681e13ed9
child 10086 98bc2ca1a816
[hookstests] change got/expected order
hooks/test/unittest_hooks.py
--- a/hooks/test/unittest_hooks.py	Wed Jul 09 15:38:39 2014 +0200
+++ b/hooks/test/unittest_hooks.py	Tue Jun 10 16:18:46 2014 +0200
@@ -77,23 +77,23 @@
             entity = cnx.create_entity('Workflow', name=u'wf1',
                                        description_format=u'text/html',
                                        description=u'yo')
-            self.assertEqual(entity.description, u'yo')
+            self.assertEqual(u'yo', entity.description)
             entity = cnx.create_entity('Workflow', name=u'wf2',
                                        description_format=u'text/html',
                                        description=u'<b>yo')
-            self.assertEqual(entity.description, u'<b>yo</b>')
+            self.assertEqual(u'<b>yo</b>', entity.description)
             entity = cnx.create_entity('Workflow', name=u'wf3',
                                        description_format=u'text/html',
                                        description=u'<b>yo</b>')
-            self.assertEqual(entity.description, u'<b>yo</b>')
+            self.assertEqual(u'<b>yo</b>', entity.description)
             entity = cnx.create_entity('Workflow', name=u'wf4',
                                        description_format=u'text/html',
                                        description=u'<b>R&D</b>')
-            self.assertEqual(entity.description, u'<b>R&amp;D</b>')
+            self.assertEqual(u'<b>R&amp;D</b>', entity.description, )
             entity = cnx.create_entity('Workflow', name=u'wf5',
                                        description_format=u'text/html',
                                        description=u"<div>c&apos;est <b>l'ét&eacute;")
-            self.assertEqual(entity.description, u"<div>c'est <b>l'été</b></div>")
+            self.assertEqual(u"<div>c'est <b>l'été</b></div>", entity.description)
 
     def test_nonregr_html_tidy_hook_no_update(self):
         with self.admin_access.client_cnx() as cnx: