[mod_python] mod_python and unittest

Sean Abrahams abrahams at gmail.com
Fri Jul 9 16:21:08 EDT 2004

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?


More information about the Mod_python mailing list