old_contents: #!/usr/bin/python
  
  import unittest
  
  import pentai.base.t_all as b_t
  import pentai.ai.t_all as ai_t
  import pentai.db.t_all as db_t
  import pentai.db.zodb_dict as z_m
  
  import os
  
  def suite():
      global all_tests
      all_tests = unittest.TestSuite()
      all_tests.addTest(b_t.suite())
      all_tests.addTest(ai_t.suite())
      all_tests.addTest(db_t.suite())
  
      return all_tests
  
  def main():
      z_m.set_db("test.db")
  
      unittest.TextTestRunner().run(suite())
      
      os.unlink("test.db")
  
  if __name__ == "__main__":
      main()
  
new_contents: #!/usr/bin/python
  
  import unittest
  
  import pentai.base.t_all as b_t
  import pentai.ai.t_all as ai_t
  import pentai.db.t_all as db_t
  import pentai.db.zodb_dict as z_m
  
  import os
  
  def suite():
      global all_tests
      all_tests = unittest.TestSuite()
      all_tests.addTest(b_t.suite())
      all_tests.addTest(ai_t.suite())
      all_tests.addTest(db_t.suite())
  
      return all_tests
  
  def main():
      z_m.set_db("test.db")
  
      unittest.TextTestRunner().run(suite())
      
      os.unlink("test.db")
      os.unlink("test.db.lock")
      os.unlink("test.db.tmp")
      os.unlink("test.db.index")
  
  if __name__ == "__main__":
      main()
  
subject: Tidy up