From 03a32bcb91d3f8af1717277d1d09e571e5c35a7b Mon Sep 17 00:00:00 2001 From: "Jay S. Bryant" Date: Wed, 24 Apr 2013 12:56:03 -0500 Subject: [PATCH] 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 --- cinder/tests/test_utils.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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 (("""