[mod_python] Unit testing in mod_python

Sebastjan Trepca trepca at gmail.com
Mon Jan 9 13:43:33 EST 2006


Hi,

does anyone know of any mod_python unittest module which could generate a
"fake request" so you could effectivly test your handlers?

For example:
import my_handler

fake_request = get_basic_request(qs="test1=1&test2=2")
assert my_handler.handle(fake_request)==apache.OK
assert fake_request.out.startswith('<html>')

Thanks, Sebastjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060109/f3d8946c/attachment.html


More information about the Mod_python mailing list