def tearDown(self): db.session.remove() db.drop_all()
def resetdb(): """Drops and creates the database.""" db.drop_all() db.create_all()