Francesco Romani has uploaded a new change for review.

Change subject: tests: use assertXMLEqual in vmTests
......................................................................

tests: use assertXMLEqual in vmTests

switch to assertXMLEqual to have better error messages.

Change-Id: I6516404548eb000f9501818818c929df09c406e2
Signed-off-by: Francesco Romani <from...@redhat.com>
---
M tests/vmTests.py
1 file changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/17/65417/1

diff --git a/tests/vmTests.py b/tests/vmTests.py
index 6b7bb61..905a36e 100644
--- a/tests/vmTests.py
+++ b/tests/vmTests.py
@@ -633,7 +633,7 @@
             </qos>
             """)
 
-            self.assertEqual(expected_xml, self._xml_sanitizer(dom._metadata))
+            self.assertXMLEqual(expected_xml, 
self._xml_sanitizer(dom._metadata))
 
     def testCpuTune(self):
         LIMIT = 50
@@ -829,7 +829,7 @@
             </qos>
             """)
 
-            self.assertEqual(expected_xml, self._xml_sanitizer(dom._metadata))
+            self.assertXMLEqual(expected_xml, 
self._xml_sanitizer(dom._metadata))
 
     def testGetIoTunePolicy(self):
         with fake.VM() as machine:
@@ -932,8 +932,8 @@
             # Test that caches were properly updated
             self.assertEqual(drives[0].specParams["ioTune"],
                              expected_io_tune[drives[0].name])
-            self.assertEqual(self._xml_sanitizer(drives[0]._deviceXML),
-                             self._xml_sanitizer(expected_xml))
+            self.assertXMLEqual(self._xml_sanitizer(drives[0]._deviceXML),
+                                self._xml_sanitizer(expected_xml))
 
     def testSdIds(self):
         """


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6516404548eb000f9501818818c929df09c406e2
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Francesco Romani <from...@redhat.com>
_______________________________________________
vdsm-patches mailing list -- vdsm-patches@lists.fedorahosted.org
To unsubscribe send an email to vdsm-patches-le...@lists.fedorahosted.org

Reply via email to