Change in vdsm[master]: tests: v2v: use namedtuple and not plain tuples

fromani at redhat.com fromani at redhat.com
Fri Nov 20 09:17:57 UTC 2015


Francesco Romani has uploaded a new change for review.

Change subject: tests: v2v: use namedtuple and not plain tuples
......................................................................

tests: v2v: use namedtuple and not plain tuples

Make access using names (foo.bar) is nicer than
using indexes (foo[0]).

Tiny patch, tiny improvement but helps for future
patches in the series.

Change-Id: I75e84c1afb0ff93a6d6d28e96dfc93f0ab2ad978
Signed-off-by: Francesco Romani <fromani at redhat.com>
---
M tests/v2vTests.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/51/48851/1

diff --git a/tests/v2vTests.py b/tests/v2vTests.py
index 6394d3c..942e8aa 100644
--- a/tests/v2vTests.py
+++ b/tests/v2vTests.py
@@ -98,7 +98,9 @@
 class LibvirtMock(object):
 
     def __init__(self,
-                 vmspecs=(("RHEL", "564d7cb4-8e3d-06ec-ce82-7b2b13c6a611"),)):
+                 vmspecs=(
+                     VmSpec("RHEL", "564d7cb4-8e3d-06ec-ce82-7b2b13c6a611"),
+                 )):
         self._vmspecs = vmspecs
 
     def close(self):


-- 
To view, visit https://gerrit.ovirt.org/48851
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I75e84c1afb0ff93a6d6d28e96dfc93f0ab2ad978
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <fromani at redhat.com>


More information about the vdsm-patches mailing list