def tearDown(self):
     """Clear all tables"""
     for tbl in reversed(Base.metadata.sorted_tables):
         engine.execute(tbl.delete())
     dbSession.remove()
def shutdown_session(exception=None):
    dbSession.remove()