[master 6/10] Account for recent lvm snapshot format changes in tests.

dwlehman installerbot-noreply at redhat.com
Mon Jul 20 21:39:27 UTC 2015


From: David Lehman <dlehman at redhat.com>

---
 tests/devices_test/lvm_test.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/devices_test/lvm_test.py b/tests/devices_test/lvm_test.py
index 5acee64..e8d0290 100644
--- a/tests/devices_test/lvm_test.py
+++ b/tests/devices_test/lvm_test.py
@@ -47,9 +47,9 @@ def testLVMSnapShotDeviceInit(self):
         lv.exists = True
         snap1 = LVMSnapShotDevice("snap1", parents=[vg], origin=lv)
 
-        self.assertEqual(snap1.format, lv.format)
-        snap1.format = blivet.formats.getFormat("DM_snapshot_cow", exists=True)
-        self.assertEqual(snap1.format, lv.format)
+        self.assertEqual(snap1.format.type, lv.format.type)
+        lv.format = blivet.formats.getFormat("DM_snapshot_cow", exists=True)
+        self.assertEqual(snap1.format.type, lv.format.type)
 
         self.assertEqual(snap1.isleaf, True)
         self.assertEqual(snap1.direct, True)


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/e77416ed066b709d97ff865778e17ad6c8083989


More information about the anaconda-patches mailing list