Merge "Use exception.faultstring instead of exception.message"

This commit is contained in:
Jenkins 2016-03-01 06:52:59 +00:00 committed by Gerrit Code Review
commit 5a7e48adfa
1 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ class TestApiUtils(base.FunctionalTest):
doc, patch)
self.assertEqual(
"Adding a new attribute /fake to the root of the resource is "
"not allowed.", exc.message)
"not allowed.", exc.faultstring)
def test_apply_jsonpatch_add_attr_already_exist(self):
doc = {'bay_uuid': 'id', 'node_count': 1}
@ -149,4 +149,4 @@ class TestApiUtils(base.FunctionalTest):
self.assertEqual(
"The attribute /node_count has existed, please use "
"'replace' operation instead.", exc.message)
"'replace' operation instead.", exc.faultstring)