[virt-tools-list] [PATCH virt-manager 03/14] tests: Use (get|set)_prop
Marc Hartmayer
mhartmay at linux.ibm.com
Tue Feb 26 09:56:33 UTC 2019
Signed-off-by: Marc Hartmayer <mhartmay at linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy at linux.ibm.com>
---
tests/xmlparse.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/xmlparse.py b/tests/xmlparse.py
index 709bc48fb99f..df6f022eaf57 100644
--- a/tests/xmlparse.py
+++ b/tests/xmlparse.py
@@ -68,12 +68,12 @@ class XMLParseTest(unittest.TestCase):
Check expected initial value obj.param == initval, then
set newval, and make sure it is returned properly
"""
- curval = getattr(obj, param)
+ curval = virtinst.xmlapi.get_prop(obj, param)
self.assertEqual(initval, curval)
for newval in args:
- setattr(obj, param, newval)
- curval = getattr(obj, param)
+ virtinst.xmlapi.set_prop(obj, param, newval)
+ curval = virtinst.xmlapi.get_prop(obj, param)
self.assertEqual(newval, curval)
def _make_checker(self, obj):
--
2.17.0
More information about the virt-tools-list
mailing list