[blivet:master 10/20] Get _loopMap.values() when all that's needed is the values
mulhern
amulhern at redhat.com
Fri Apr 11 18:03:52 UTC 2014
Also, get the values when the values, not the keys, are what is needed.
Signed-off-by: mulhern <amulhern at redhat.com>
---
tests/devicelibs_test/lvm_test.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/devicelibs_test/lvm_test.py b/tests/devicelibs_test/lvm_test.py
index 3cd5bc2..78be3f8 100755
--- a/tests/devicelibs_test/lvm_test.py
+++ b/tests/devicelibs_test/lvm_test.py
@@ -60,7 +60,7 @@ class LVMAsRootTestCase(baseclass.DevicelibsTestCase):
pass
try:
- for dev in self._loopMap.keys():
+ for dev in self._loopMap.values():
lvm.pvremove(dev)
except LVMError:
pass
@@ -76,7 +76,7 @@ class LVMAsRootTestCase(baseclass.DevicelibsTestCase):
## pvcreate
##
# pass
- for _file, dev in self._loopMap.iteritems():
+ for dev in self._loopMap.values():
self.assertEqual(lvm.pvcreate(dev), None)
# fail
@@ -86,7 +86,7 @@ class LVMAsRootTestCase(baseclass.DevicelibsTestCase):
## pvresize
##
# pass
- for _file, dev in self._loopMap.iteritems():
+ for dev in self._loopMap.values():
self.assertEqual(lvm.pvresize(dev, Size(spec="50MiB")), None)
self.assertEqual(lvm.pvresize(dev, Size(spec="100MiB")), None)
@@ -258,7 +258,7 @@ class LVMAsRootTestCase(baseclass.DevicelibsTestCase):
## pvremove
##
# pass
- for _file, dev in self._loopMap.iteritems():
+ for dev in self._loopMap.values():
self.assertEqual(lvm.pvremove(dev), None)
# fail
--
1.8.3.1
More information about the anaconda-patches
mailing list