Commit aa5ceeb4 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Remove trailing whitespaces

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43108 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 21363b74
...@@ -103,7 +103,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase): ...@@ -103,7 +103,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase):
self.getWorkflowTool().setChainForPortalTypes( self.getWorkflowTool().setChainForPortalTypes(
[self.portal_type],'test_workflow, validation_workflow') [self.portal_type],'test_workflow, validation_workflow')
_aq_reset() # XXX Fails XXX _setLastId not found when doing newContent _aq_reset() # XXX Fails XXX _setLastId not found when doing newContent
def createInteractionWorkflowWithTwoInteractions(self): def createInteractionWorkflowWithTwoInteractions(self):
id = 'test_workflow' id = 'test_workflow'
wf_type = "interaction_workflow (Web-configurable interaction workflow)" wf_type = "interaction_workflow (Web-configurable interaction workflow)"
...@@ -274,7 +274,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase): ...@@ -274,7 +274,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase):
self.assertEquals(organisation.getDescription(),'a') self.assertEquals(organisation.getDescription(),'a')
organisation.setActivityCode('acode') organisation.setActivityCode('acode')
self.assertEquals(organisation.getDescription(),'aa') self.assertEquals(organisation.getDescription(),'aa')
def test_09(self, quiet=0, run=run_all_test): def test_09(self, quiet=0, run=run_all_test):
if not run: return if not run: return
if not quiet: if not quiet:
...@@ -296,7 +296,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase): ...@@ -296,7 +296,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase):
"context.setDescription(description + 'a')" "context.setDescription(description + 'a')"
self.scriptA.ZPythonScript_edit(params, body) self.scriptA.ZPythonScript_edit(params, body)
self.scriptB.ZPythonScript_edit(params, body.replace("'a'", "'b'")) self.scriptB.ZPythonScript_edit(params, body.replace("'a'", "'b'"))
self.createData() self.createData()
organisation = self.organisation organisation = self.organisation
organisation.edit() organisation.edit()
...@@ -307,7 +307,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase): ...@@ -307,7 +307,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase):
self.assert_(organisation.getDescription() in ('ab', 'ba'), self.assert_(organisation.getDescription() in ('ab', 'ba'),
"description should be 'ab' or 'ba', it is %s" % "description should be 'ab' or 'ba', it is %s" %
organisation.getDescription()) organisation.getDescription())
def test_10(self, quiet=0, run=run_all_test): def test_10(self, quiet=0, run=run_all_test):
if not run: return if not run: return
if not quiet: if not quiet:
...@@ -325,7 +325,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase): ...@@ -325,7 +325,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase):
"context.setDescription(description + 'a')" "context.setDescription(description + 'a')"
self.scriptA.ZPythonScript_edit(params, body) self.scriptA.ZPythonScript_edit(params, body)
self.scriptB.ZPythonScript_edit(params, body.replace("'a'", "'b'")) self.scriptB.ZPythonScript_edit(params, body.replace("'a'", "'b'"))
self.createData() self.createData()
organisation = self.organisation organisation = self.organisation
organisation.edit() organisation.edit()
...@@ -336,7 +336,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase): ...@@ -336,7 +336,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase):
self.assert_(organisation.getDescription() in ('ab', 'ba'), self.assert_(organisation.getDescription() in ('ab', 'ba'),
"description should be 'ab' or 'ba', it is %s" % "description should be 'ab' or 'ba', it is %s" %
organisation.getDescription()) organisation.getDescription())
def test_11(self, quiet=0, run=run_all_test): def test_11(self, quiet=0, run=run_all_test):
if not run: return if not run: return
if not quiet: if not quiet:
...@@ -454,7 +454,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase): ...@@ -454,7 +454,7 @@ class TestInteractionWorkflow(ERP5TypeTestCase):
# - edit:setVatCode(bara) # - edit:setVatCode(bara)
self.assertEquals(organisation.getVatCode(),'bara') self.assertEquals(organisation.getVatCode(),'bara')
def test_14_BeforeScriptParameters(self, quiet=0, run=run_all_test): def test_14_BeforeScriptParameters(self, quiet=0, run=run_all_test):
if not run: return if not run: return
if not quiet: if not quiet:
...@@ -601,7 +601,7 @@ context.setTitle('Bar') ...@@ -601,7 +601,7 @@ context.setTitle('Bar')
'Access contents information', ['Role1'], 0) 'Access contents information', ['Role1'], 0)
self.assertEquals(self.organisation.nonExistantMethod__roles__, self.assertEquals(self.organisation.nonExistantMethod__roles__,
('Role1',)) ('Role1',))
def test_security_defined(self): def test_security_defined(self):
# wrapping a method in an interaction workflow adds a default security to # wrapping a method in an interaction workflow adds a default security to
# this method, but does not override existing security definition # this method, but does not override existing security definition
...@@ -659,4 +659,3 @@ def test_suite(): ...@@ -659,4 +659,3 @@ def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestInteractionWorkflow)) suite.addTest(unittest.makeSuite(TestInteractionWorkflow))
return suite return suite
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment