示例#1
0
 def tearDown(self):
     from ez2pay.models import tables
     self.session.remove()
     tables.DeclarativeBase.metadata.drop_all()
     tables.set_now_func(self._old_now_func)
示例#2
0
 def setUp(self):
     from ez2pay.models import tables
     self.session = create_session()
     self._old_now_func = tables.set_now_func(datetime.datetime.utcnow)