I think using a memory sqlite database base might be a better idea for testing. http://docs.python.org/2/library/sqlite3.html#sqlite3.connect