def teardown_class(): """ Delete the password attribute and remove the database associated with the model documents. """ del Config.password User.set_db(None) Group.set_db(None) Permission.set_db(None)
def teardown_package(): User.set_db(None) del Config.environ del Config.t11
def setup_package(): User.set_db(Config.db) Config.environ = {} Config.t11 = default_translations Config.t11['user_class'] = User