def test_check_connect(self):
        client = mongoengine.connection.get_connection()
        self.assertEqual(client.host, cfg.CONF.database.host,
                         'Not connected to desired host.')
        self.assertEqual(client.port, cfg.CONF.database.port,
                         'Not connected to desired port.')
Tests connectivity to the db server. Requires the db server to be
dataset/ETHPy150Open StackStorm/st2/st2common/tests/unit/test_db.py/DbConnectionTest.test_check_connect