コード例 #1
0
ファイル: test_db.py プロジェクト: lyandut/st2
    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())
コード例 #2
0
ファイル: test_db.py プロジェクト: ssubbanna/st2_test
    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())