def setUp(self):
        self.engine = create_engine(os.environ['NEX2_URI'], pool_recycle=3600)
        DBSession.remove()
        DBSession.configure(bind=self.engine)

        Base.metadata.create_all(self.engine)
 def tearDown(self):
     DBSession.remove()