Add missing ws seperator between words

This is to add missing ws seperator between words.

Change-Id: I095f698aa8999bd3a9a866f61ccd98a4156eecd2
This commit is contained in:
zhufl 2019-01-25 11:42:58 +08:00
parent 84dbf04836
commit 11f1fd85c4
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,