Commit a21f416e authored by Nicolas Dumazet's avatar Nicolas Dumazet

useless variable, trailing whitespaces


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41775 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bb7c7c7c
...@@ -37,14 +37,14 @@ except ImportError: ...@@ -37,14 +37,14 @@ except ImportError:
pass pass
class TestClassTool(ERP5TypeTestCase): class TestClassTool(ERP5TypeTestCase):
def getTitle(self): def getTitle(self):
return "Class Tool" return "Class Tool"
def afterSetUp(self): def afterSetUp(self):
self.login() self.login()
installRealClassTool(self.portal) installRealClassTool(self.portal)
def login(self): def login(self):
uf = self.portal.acl_users uf = self.portal.acl_users
uf._doAddUser('seb', '', ['Manager'], []) uf._doAddUser('seb', '', ['Manager'], [])
...@@ -64,7 +64,7 @@ class TestClassTool(ERP5TypeTestCase): ...@@ -64,7 +64,7 @@ class TestClassTool(ERP5TypeTestCase):
def test_02_CheckFileWriteIsTransactional(self): def test_02_CheckFileWriteIsTransactional(self):
portal = self.portal portal = self.portal
portal_classes = portal.portal_classes portal_classes = portal.portal_classes
self.assertEqual(portal_classes.getLocalDocumentList(), [], self.assertEqual(portal_classes.getLocalDocumentList(), [],
'Test environment is dirty. Please clean up the instance home of ' 'Test environment is dirty. Please clean up the instance home of '
'the test environment and fix up tests that might have left over ' 'the test environment and fix up tests that might have left over '
...@@ -111,7 +111,7 @@ class TestClassTool(ERP5TypeTestCase): ...@@ -111,7 +111,7 @@ class TestClassTool(ERP5TypeTestCase):
doc_helper = folder.asDocumentationHelper() doc_helper = folder.asDocumentationHelper()
get_transaction().commit() get_transaction().commit()
self.assertEquals(0, len(portal.portal_activities.getMessageList())) self.assertEquals(0, len(portal.portal_activities.getMessageList()))
def test_DocumentationHelperExpressionCategory(self): def test_DocumentationHelperExpressionCategory(self):
# This tests checks that Documentation Helper works with propertysheets # This tests checks that Documentation Helper works with propertysheets
...@@ -122,8 +122,7 @@ class TestClassTool(ERP5TypeTestCase): ...@@ -122,8 +122,7 @@ class TestClassTool(ERP5TypeTestCase):
movement = Movement('dummy_movement').__of__( movement = Movement('dummy_movement').__of__(
Delivery('dummy_delivery').__of__(self.portal)) Delivery('dummy_delivery').__of__(self.portal))
# This test relies on the fact that Movement class has categories defined # This test relies on the fact that Movement class has categories defined
# by an expression. # by an expression.
category_list = []
found_one = 0 found_one = 0
for ps in movement.property_sheets: for ps in movement.property_sheets:
for category in getattr(ps, '_categories', []): for category in getattr(ps, '_categories', []):
......
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