Commit c828c5f3 authored by Fabien Morin's avatar Fabien Morin

add test to be sure that we can set up a membership criterion predicate...

add test to be sure that we can set up a membership criterion predicate without error and that the value is saved.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34224 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 879746b2
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<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_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
<head>\n
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
<title>Test set a membership criterion predicate</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Test set a membership criterion predicate</td></tr>\n
</thead><tbody>\n
<tal:block metal:use-macro="here/Zuite_erp5_web_common/macros/init" />\n
<tr>\n
<td>open</td>\n
<td>${base_url}/person_module/PersonModule_createPerson?id=test_website_predicate&amp;title=Test Predicate</td>\n
<td></td>\n
<td>Create a new site</td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Created Successfully.</td>\n
<td></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/WebSiteModule_createTestSite?id=test_web_site&amp;title=Test Web Site</td>\n
<td></td>\n
<td>Create a new site</td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Created Successfully.</td>\n
<td></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/Zuite_waitForActivities</td>\n
<td></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Done.</td>\n
<td></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/web_site_module/test_web_site/Predicate_view?ignore_layout=1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Predicate</td>\n
<td></td>\n
<td></td>\n
</tr>\n
<tr>\n
\t<td>addSelection</td>\n
\t<td>field_my_membership_criterion_base_category_list</td>\n
\t<td>label=follow_up</td>\n
</tr>\n
<tr>\n
\t<td>type</td>\n
\t<td>field_my_membership_criterion_document_list</td>\n
\t<td>follow_up/person_module/test_website_predicate</td>\n
</tr>\n
<tr>\n
\t<td>clickAndWait</td>\n
\t<td>//button[@name=\'Predicate_edit:method\']</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
<td>assertTextNotPresent</td>\n
<td>Input data has errors.</td>\n
<td></td>\n
<td></td>\n
</tr>\n
<tr>\n
\t<td>assertValue</td>\n
\t<td>field_my_membership_criterion_document_list</td>\n
\t<td>follow_up/person_module/test_website_predicate</td>\n
</tr>\n
</tbody></table>\n
</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testAddMembershipCriterion</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</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>_body</string> </key>
<value> <string>context.newContent(id=id, title=title, portal_type=\'Person\')\n
return "Created Successfully."\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>id=None, title=None</string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>id</string>
<string>title</string>
<string>_getattr_</string>
<string>context</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>PersonModule_createPerson</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -69,6 +69,9 @@ if portal.web_site_module.has_key(\'test_web_site_2\'):\n
if portal.web_site_module.has_key(\'test_web_site\'):\n
portal.web_site_module.manage_delObjects(\'test_web_site\')\n
\n
if portal.person_module.has_key(\'test_website_predicate\'):\n
portal.person_module.manage_delObjects(\'test_website_predicate\')\n
\n
portal.web_page_module.manage_delObjects(\n
[x.getId() for x in portal.web_page_module.objectValues() \\\n
if x.getTitle().startswith(\'test_\')])\n
......
2010-03-31 fabien
* add a test that check it's possible to add membership criterion predicate
2009-04-17 Kazuhiko
* add security configurations
......
20
\ No newline at end of file
23
\ No newline at end of file
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