From: Jay S. Bryant Date: Wed, 24 Apr 2013 17:56:03 +0000 (-0500) Subject: Avoid using whitespace in test_safe_parse_xml. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=03a32bcb91d3f8af1717277d1d09e571e5c35a7b;p=openstack-build%2Fcinder-build.git Avoid using whitespace in test_safe_parse_xml. Updates the test_safe_parse_xml test case in cinder.tests.test_utils.GenericUtilsTestCase to avoid using whitespaces and to ignore extraneous newlines returned in the parsed XML. This is required to work around differences in the output from minidom in python 2.6. Fixes LP Bug #1172352. Change-Id: I48bdf3cb8eed3e65f7ceaeb1c2b19aa529c930d0 --- diff --git a/cinder/tests/test_utils.py b/cinder/tests/test_utils.py index 76aee6d19..c0de09dd4 100644 --- a/cinder/tests/test_utils.py +++ b/cinder/tests/test_utils.py @@ -428,13 +428,8 @@ class GenericUtilsTestCase(test.TestCase): def test_safe_parse_xml(self): - normal_body = (""" - - - hey - there - - """).strip() + normal_body = ('' + 'heythere') def killer_body(): return (("""