def test_cleanup(self):
        """
        Tests dropping the database. Requires the db server to be running.
        """
        self.assertIn(
            cfg.CONF.database.db_name, self.db_connection.list_database_names()
        )

        connection = db_cleanup()

        self.assertNotIn(cfg.CONF.database.db_name, connection.list_database_names())

        Tests dropping the database. Requires the db server to be running.
        
st2common/tests/unit/test_db.py