[mod_python] mod_python and unittest

Gregory (Grisha) Trubetskoy grisha at modpython.org
Fri Jul 9 20:20:48 EDT 2004

Sean -

Take a look at the test subdirectory of the source distribution. It 
contains a bunch of mod_python tests. You're right, it's not that simple 
because you actually have to run httpd and make a request to conduct a 


On Fri, 9 Jul 2004, Sean Abrahams wrote:

> What's the best way to use python's unittest module with mod_python?
> Unless I'm missing something, I can't just 'from mod_python import
> apache' and create my own req object without it being run under
> Apache. I was thinking I should just create a mock req object for
> simple tests, thoughts?
> Thanks,
> --Sean
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

More information about the Mod_python mailing list