Commit 95463295 authored by Ivan Tyagov's avatar Ivan Tyagov

portal_sessions are leaned up between tests steps.

Make sure that every test step gets properly initialized.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19561 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b30ca9f8
......@@ -125,6 +125,14 @@ class TestSessionTool(ERP5TypeTestCase):
LOG('Testing... ',0,message)
portal = self.getPortal()
portal_sessions = portal.portal_sessions
session = portal_sessions.newContent(
self.session_id, \
attr_1 = newTempOrder(portal_sessions, '1'), \
attr_2 = newTempOrder(portal_sessions, '2'), \
attr_3 = 1,
attr_4 = 0.1,
attr_5 = {},
attr_6 = 'string',)
session = portal_sessions[self.session_id]
session.pop('attr_1')
session.pop('attr_2')
......@@ -141,6 +149,14 @@ class TestSessionTool(ERP5TypeTestCase):
LOG('Testing... ',0,message)
portal = self.getPortal()
portal_sessions = portal.portal_sessions
session = portal_sessions.newContent(
self.session_id, \
attr_1 = newTempOrder(portal_sessions, '1'), \
attr_2 = newTempOrder(portal_sessions, '2'), \
attr_3 = 1,
attr_4 = 0.1,
attr_5 = {},
attr_6 = 'string',)
## delete it
portal_sessions.manage_delObjects(self.session_id)
session = portal_sessions[self.session_id]
......
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