def test_updateDatabase(self):
     # NOTE: it might be worth adding a test that compares the new
     # database to the updated database to check they match.
     database_initialiser = DatabaseInitialiser(self.config)
     self.helper.setup_clean_db()
     # this isn't much of a check...
     # our coverage isn't very good.
     assert database_initialiser.updateDatabase()
 def test_updateDatabase_needs_update(self):
     database_initialiser = DatabaseInitialiser(self.config)
     self.helper.setup_clean_db()
     self.make_db_outofdate()
     self.helper.setup_db_file('openihmdb_mysql_update.sql')
     assert database_initialiser.updateDatabase()