--- a/hooks/test/unittest_hooks.py Fri Apr 22 11:58:41 2011 +0200
+++ b/hooks/test/unittest_hooks.py Fri Apr 22 12:02:32 2011 +0200
@@ -42,25 +42,31 @@
def test_html_tidy_hook(self):
req = self.request()
- entity = req.create_entity('Workflow', name=u'wf1', description_format=u'text/html',
- description=u'yo')
+ entity = req.create_entity('Workflow', name=u'wf1',
+ description_format=u'text/html',
+ description=u'yo')
self.assertEqual(entity.description, u'yo')
- entity = req.create_entity('Workflow', name=u'wf2', description_format=u'text/html',
- description=u'<b>yo')
+ entity = req.create_entity('Workflow', name=u'wf2',
+ description_format=u'text/html',
+ description=u'<b>yo')
self.assertEqual(entity.description, u'<b>yo</b>')
- entity = req.create_entity('Workflow', name=u'wf3', description_format=u'text/html',
- description=u'<b>yo</b>')
+ entity = req.create_entity('Workflow', name=u'wf3',
+ description_format=u'text/html',
+ description=u'<b>yo</b>')
self.assertEqual(entity.description, u'<b>yo</b>')
- entity = req.create_entity('Workflow', name=u'wf4', description_format=u'text/html',
- description=u'<b>R&D</b>')
+ entity = req.create_entity('Workflow', name=u'wf4',
+ description_format=u'text/html',
+ description=u'<b>R&D</b>')
self.assertEqual(entity.description, u'<b>R&D</b>')
- entity = req.create_entity('Workflow', name=u'wf5', description_format=u'text/html',
- description=u"<div>c'est <b>l'été")
+ entity = req.create_entity('Workflow', name=u'wf5',
+ description_format=u'text/html',
+ description=u"<div>c'est <b>l'été")
self.assertEqual(entity.description, u"<div>c'est <b>l'été</b></div>")
def test_nonregr_html_tidy_hook_no_update(self):
- entity = self.request().create_entity('Workflow', name=u'wf1', description_format=u'text/html',
- description=u'yo')
+ entity = self.request().create_entity('Workflow', name=u'wf1',
+ description_format=u'text/html',
+ description=u'yo')
entity.set_attributes(name=u'wf2')
self.assertEqual(entity.description, u'yo')
entity.set_attributes(description=u'R&D<p>yo')