mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
tests: xmlparse: use set_special_mode function
CPU mode is never set directly using mode attribute, instead we use setter function with some extra logic that needs to be done. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
@@ -338,8 +338,9 @@ class XMLParseTest(unittest.TestCase):
|
||||
guest, outfile = self._get_test_content("change-cpumode")
|
||||
|
||||
check = self._make_checker(guest.cpu)
|
||||
check("mode", "host-passthrough", "custom")
|
||||
check("mode", "custom", "host-model")
|
||||
check("mode", "host-passthrough")
|
||||
guest.cpu.set_special_mode(guest, "host-model")
|
||||
check("mode", "host-model")
|
||||
# mode will be "custom"
|
||||
check("model", None, "qemu64")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user