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})
Test to return detailed information about the vms
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/xapi_test.py/XapiTestCase.test_vm_info