unit tests with mod_python
peter at engcorp.com
Wed Jun 18 20:13:15 CEST 2003
> I am experimenting with test driven development. I'm working with
> mod_python, however, and of course you can't import apache from
> mod_python outside of actually running within apache.
> Before I reinvent the wheel, has anyone written a mod_python simulacrum
It's possible, if you search using the more common term "mock"
instead of simulacrum, that you might find something out there already.
> for use in unit tests - one that provides, at a minimum, a faux request
> object and the other attributes (like apache.OK) needed to run in a
> pretend environment?
> Alternately, has anyone set up a way to drive requests from unittest?
Searching on the testdrivendevelopment list at Yahoo Groups might be a
good idea, in case someone who doesn't frequent this group has actually
More information about the Python-list