Correct print pattern in rest_client
The statement:
pattern = """Unexpected http success status code {0},
The expected status code is {1}"""
will print more spaces than expected, something like:
Details: Unexpected http success status code 200,
The expected status code is [204]
This is to fix it.
Change-Id: If4a299828dce4a835d5d178deff09e01950a8915
diff --git a/tempest/lib/common/rest_client.py b/tempest/lib/common/rest_client.py
index 31d2ba5..87dc02a 100644
--- a/tempest/lib/common/rest_client.py
+++ b/tempest/lib/common/rest_client.py
@@ -248,8 +248,8 @@
# NOTE(afazekas): the http status code above 400 is processed by
# the _error_checker method
if read_code < 400:
- pattern = """Unexpected http success status code {0},
- The expected status code is {1}"""
+ pattern = ("Unexpected http success status code {0}, "
+ "The expected status code is {1}")
if ((not isinstance(expected_code, list) and
(read_code != expected_code)) or
(isinstance(expected_code, list) and