def tearDown(self):
     testing.tearDown()
     DBSession.remove()
 def tearDown(self):
     DBSession.remove()
     shutil.rmtree(self.lock_dir)