Commit 7b9624b2 authored by Boxiang Sun's avatar Boxiang Sun

erp5_user_tutorial_ui_test: Add Zuite_tearDownBankAccountTest for bank account test

parent 2cd3953a
......@@ -25,6 +25,7 @@ return {'now': DateTime(),
'person_howto_organisation_title': 'Z Company',
'organisation_howto_organisation_title': 'Z Company',
'bankaccount_howto_organisation_title': 'HSBC Enterprise',
'link_howto_person_title' : 'ZUITE-TEST-LINK USER-001',
'link_howto_person_first_name': 'ZUITE-TEST-LINK',
......
portal = context.getPortalObject()
# remove the organisation of the test if existing
organisation_list = context.Zuite_checkPortalCatalog(portal_type='Organisation', max_count=1,
title=context.Zuite_getHowToInfo()['organisation_howto_organisation_title'])
bank_account_list = context.Zuite_checkPortalCatalog(portal_type='Organisation', max_count=1,
title=context.Zuite_getHowToInfo()['bankaccount_howto_organisation_title'])
if organisation_list is not None:
# Z Company itself
portal.organisation_module.deleteContent(organisation_list[0].getId())
if bank_account_list is not None:
# The bank account created by the test
portal.organisation_module.deleteContent(bank_account_list[0].getId())
return "Clean Ok"
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Zuite_tearDownBankAccountTest</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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