Merge "Add missing ws seperator between words"

This commit is contained in:
Zuul 2019-01-28 16:37:29 +00:00 committed by Gerrit Code Review
commit 7f7f5e2414
3 changed files with 3 additions and 3 deletions

View File

@ -162,7 +162,7 @@ def validate_values(data, valid_values=None, valid_values_display=None):
return msg
except TypeError:
# This is a programming error
msg = (_("'data' of type '%(typedata)s' and 'valid_values'"
msg = (_("'data' of type '%(typedata)s' and 'valid_values' "
"of type '%(typevalues)s' are not "
"compatible for comparison") %
{'typedata': type(data),

View File

@ -58,7 +58,7 @@ class PlacementResourceClassNotFound(exceptions.NotFound):
class PlacementAPIVersionIncorrect(exceptions.NotFound):
message = _("Placement API version %(current_version)s, do not meet the"
message = _("Placement API version %(current_version)s, do not meet the "
"needed version %(needed_version)s.")

View File

@ -149,7 +149,7 @@ class TestAttributeValidation(base.BaseTestCase):
# Check that value is not comparable to valid_values and got Exception
data = 1
valid_values = '[2, 3, 4, 5]'
response = "'data' of type '%s' and 'valid_values'of type" \
response = "'data' of type '%s' and 'valid_values' of type" \
" '%s' are not compatible for comparison" % (
type(data), type(valid_values))
self.assertRaisesRegex(TypeError, response,