mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-09 12:38:05 -05:00
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:
committed by
Cole Robinson
parent
60c7e778e3
commit
5bad22e837
+3
-3
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user