Python and database unittests

alex23 wuwei23 at
Wed Aug 27 04:55:45 CEST 2008

Daniel <daniel.watr... at> wrote:
> Does anyone know about a module that acts as a database stub for
> python unittests?

It's not database-specific, but the Mock module should help you here:

There's even an example on that page for mocking a database.

More information about the Python-list mailing list