Another option for mocking would be a class that would inherit from cgi
and then overload the functions you want to manipulate.
meaning :
class mycgi(cgi):
def get_params(self):
doMyOwnMagic()
Using mycgi will probebly be transparent to any component which is using
cgi...
you just switch the import mycgi instead and you get all of the methods
defined in cgi "for free".
This a is very common practice within python modules where sometimes the
way to use he module is to inherit it an start overloading it's
finctions (HTMLParser for example with it's in_[tag] functions.
Lior
--
Lior Kesos - [EMAIL PROTECTED]
Content Development Team Leader
==============================
"Everything should be made as simple as possible -
but not simpler" -- Albert Einstein