[Zope-CVS] CVS: Packages/FunctionalTests/examples - payload_test.py:1.1 simple_payload_test.zft:1.1
Tres Seaver
tseaver@zope.com
Fri, 13 Jun 2003 23:22:57 -0400
Update of /cvs-repository/Packages/FunctionalTests/examples
In directory cvs.zope.org:/tmp/cvs-serv2504/examples
Added Files:
payload_test.py simple_payload_test.zft
Log Message:
- Add first pass at payload checking, using PluginFunctions.
=== Added File Packages/FunctionalTests/examples/payload_test.py ===
def is_zope_org( request, payload ):
if not payload.find( 'Welcome to Zope' ) >= 0:
raise ValueError, 'Not www.zope.org'
=== Added File Packages/FunctionalTests/examples/simple_payload_test.zft ===
[Scenario]
Title : Demonstrate Payload Validation
Use_case: Page Has Correct Content
[Home_Page]
URL: http://www.zope.org
Expected_Result: 200
Expected_Payload_Filename=%(config_dir)s/payload_test.py
Expected_Payload_Function=is_zope_org
Expected_Time: 30.0
[DEFAULT]
userid: user
password: password
doh: __