Python and database unittests

Simon Brunning simon at brunningonline.net
Wed Aug 27 04:24:53 EDT 2008


2008/8/27 alex23 <wuwei23 at gmail.com>:
> Daniel <daniel.watr... at gmail.com> wrote:
> It's not database-specific, but the Mock module should help you here:
>
> http://python-mock.sourceforge.net/
>
> There's even an example on that page for mocking a database.

There's a number of mocking modules for Python - my current favorite
is Mox. See <http://tinyurl.com/57hzr4>.

-- 
Cheers,
Simon B.
simon at brunningonline.net
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list