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