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.')
Find a single statistics
dataset/ETHPy150Open StackStorm/st2/st2common/tests/unit/test_db.py/DbConnectionTest.test_check_connect--crossover with--dataset/ETHPy150Open openstack/python-openstacksdk/openstack/telemetry/v2/_proxy.py/Proxy.find_statistics