Merge "fix policy-list2 error"

This commit is contained in:
Jenkins 2016-11-16 02:10:48 +00:00 committed by Gerrit Code Review
commit 38ec3ea2b4
1 changed files with 1 additions and 2 deletions

View File

@ -144,8 +144,7 @@ class PolicyControllerTest(shared.ControllerTest, base.SenlinTestCase):
@mock.patch.object(rpc_client.EngineClient, 'call2')
def test_policy_index_limit_non_int(self, mock_call, mock_enforce):
mock_call = self.patchobject(rpc_client.EngineClient, 'policy_list',
return_value=[])
self._mock_enforce_setup(mock_enforce, 'index', True)
params = {'limit': 'abc'}
req = self._get('/policies', params=params)