From: Baodong (Robert) Li Date: Fri, 1 Mar 2013 18:56:02 +0000 (-0800) Subject: Incorrect argument in calling post_json X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=50e05960d60928085f8cd35910ac619e9126e213;p=openstack-build%2Fneutron-build.git Incorrect argument in calling post_json The error is due to change in webtest in which post_json is redefined. Fix to work with its new definition. Fixes bug #1138233 Change-Id: I08c131bf50886456f0501d5fa8493e05543c5816 --- diff --git a/quantum/tests/unit/test_api_v2.py b/quantum/tests/unit/test_api_v2.py index e426e4d1b..2ed703bd1 100644 --- a/quantum/tests/unit/test_api_v2.py +++ b/quantum/tests/unit/test_api_v2.py @@ -1245,7 +1245,8 @@ class NotificationTest(APIv2TestBase): if opname == 'create': initial_input[resource]['tenant_id'] = _uuid() res = self.api.post_json( - _get_path('networks'), initial_input, expected_errors) + _get_path('networks'), + initial_input, expect_errors=expected_errors) if opname == 'update': res = self.api.put_json( _get_path('networks', id=_uuid()),