tests: Use (get|set)_prop

Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2019-03-06 13:13:13 -05:00
committed by Cole Robinson
parent 60c7e778e3
commit 5bad22e837
+3 -3
View File
@@ -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):