Esempio n. 1
0
    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.database_names())

        connection = db_cleanup()

        self.assertNotIn(cfg.CONF.database.db_name, connection.database_names())
Esempio n. 2
0
    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.database_names())

        connection = db_cleanup()

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