Merge "Fixes AttributeError with api sample test fail"
This commit is contained in:
commit
0a9360c959
|
@ -197,7 +197,8 @@ class ApiSampleTestBase(integrated_helpers._IntegratedTestBase):
|
||||||
if isinstance(expected, six.string_types):
|
if isinstance(expected, six.string_types):
|
||||||
# NOTE(danms): Ignore whitespace in this comparison
|
# NOTE(danms): Ignore whitespace in this comparison
|
||||||
expected = expected.strip()
|
expected = expected.strip()
|
||||||
result = result.strip()
|
if isinstance(result, six.string_types):
|
||||||
|
result = result.strip()
|
||||||
if expected != result:
|
if expected != result:
|
||||||
raise NoMatch(
|
raise NoMatch(
|
||||||
_('Values do not match:\n'
|
_('Values do not match:\n'
|
||||||
|
|
Loading…
Reference in New Issue