Merge "Add missing ws seperator between words"
This commit is contained in:
commit
7f7f5e2414
|
@ -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),
|
||||
|
|
|
@ -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.")
|
||||
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue