def test_vm_info(self):
        with patch.object(xapi, "_get_xapi_session", MagicMock()):
            mock = MagicMock(return_value=False)
            with patch.object(xapi, "_get_record_by_label", mock):
                self.assertDictEqual(xapi.vm_info(True), {True: False})
The init function, reads the server list from the config file
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/xapi_test.py/XapiTestCase.test_vm_info--crossover with--dataset/ETHPy150Open linkedin/simoorg/src/simoorg/plugins/topology/TestTopology/TestTopology.py/TestTopology.__init__