Signed-off-by: Marc Hartmayer <mhartmay@xxxxxxxxxxxxx> Reviewed-by: Boris Fiuczynski <fiuczy@xxxxxxxxxxxxx> --- 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 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list