Merge "Fix wrong capitalization"

This commit is contained in:
Jenkins
2016-02-04 11:54:38 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 3 deletions

View File

@@ -187,13 +187,13 @@ def _event_query_to_event_filter(q):
if not i.op:
i.op = 'eq'
elif i.op not in base.operation_kind:
error = (_('operator %(operator)s is not supported. the supported'
error = (_('Operator %(operator)s is not supported. The supported'
' operators are: %(supported)s') %
{'operator': i.op, 'supported': base.operation_kind})
raise base.ClientSideError(error)
if i.field in evt_model_filter:
if i.op != 'eq':
error = (_('operator %(operator)s is not supported. Only'
error = (_('Operator %(operator)s is not supported. Only'
' equality operator is available for field'
' %(field)s') %
{'operator': i.op, 'field': i.field})

View File

@@ -217,7 +217,7 @@ class TestEventAPI(EventTestBase):
'op': 'whats-up'}],
expect_errors=True)
self.assertEqual(400, resp.status_code)
self.assertEqual("operator whats-up is not supported. the "
self.assertEqual("Operator whats-up is not supported. The "
"supported operators are: (\'lt\', \'le\', "
"\'eq\', \'ne\', \'ge\', \'gt\')",
resp.json['error_message']['faultstring'])