[Zope-CMF] FunctionalTests, LoggingProxy

Tres Seaver tseaver@zope.com
30 Aug 2002 00:58:38 -0400


On Thu, 2002-08-29 at 16:00, Karl Anderson wrote:
> 
> Are there any usage examples for LoggingProxy?  Using it as a proxy
> for Mozilla or Galeon gets me "document contains no data".

Hmm, "works for me":

$ python2.1 LoggingProxy.py -v -v
* Request: GET / HTTP/1.0

* out header: Host: cmf.zope.org

* out header: User-Agent: Mozilla/5.0 Galeon/1.2.0 (X11; Linux i686; U;)
Gecko/20020326

#....

* in header: HTTP/1.0 200 OK

> Are there any examples of using FunctionalTests that examine the
> returned pages, as well as the return codes?

That use case is pretty explicitly out of scope for the tool;  the
intent is to do PyUnit style assertion checking in the postcondition,
rather than trying to make assertions about the output.  Richard Jones
and Anthony Baxter have a package which does parse output:

  http://mechanicalcat.net/tech/webunit/

You might also look at Puffin:

  http://puffin.sourceforge.net/

>  Or that use the suite section?

A quick examination of the unit tests directory convinces me that I
didn't finish implementing suites, as there are no unit tests for it.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com