Commit 5d6acbfb authored by Vincent Pelletier's avatar Vincent Pelletier

Add a step checking that foo_line_selection does not exist.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29507 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1e6576e0
...@@ -52,8 +52,6 @@ ...@@ -52,8 +52,6 @@
</thead><tbody>\n </thead><tbody>\n
<tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n <tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n
\n \n
<!-- XXX TODO: selection foo_line_selection has to be deleted at the beginning of this test.\n
For now, selection too does not allow such deletion, so, this test is only valid once on a new site...-->\n
<tr>\n <tr>\n
<td>open</td>\n <td>open</td>\n
<td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>\n <td>${base_url}/foo_module/FooModule_createObjects?num:int=1</td>\n
...@@ -74,6 +72,16 @@ For now, selection too does not allow such deletion, so, this test is only valid ...@@ -74,6 +72,16 @@ For now, selection too does not allow such deletion, so, this test is only valid
<td>Done.</td>\n <td>Done.</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>open</td>\n
<td>${base_url}/Base_checkSelectionExists?selection_name=foo_line_selection</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td></td>\n
<td>False</td>\n
</tr>\n
<tr>\n <tr>\n
<td>open</td>\n <td>open</td>\n
<td>${base_url}/foo_module/0/view</td>\n <td>${base_url}/foo_module/0/view</td>\n
......
<?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>return str(context.getPortalObject().portal_selections.getSelectionFor(selection_name) is not None)\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>selection_name</string> </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>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>selection_name</string>
<string>str</string>
<string>_getattr_</string>
<string>context</string>
<string>None</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Base_checkSelectionExists</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
494 496
\ No newline at end of file \ 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