]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Incorrect argument in calling post_json
authorBaodong (Robert) Li <baoli@cisco.com>
Fri, 1 Mar 2013 18:56:02 +0000 (10:56 -0800)
committerBaodong (Robert) Li <baoli@cisco.com>
Fri, 1 Mar 2013 19:39:10 +0000 (11:39 -0800)
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

quantum/tests/unit/test_api_v2.py

index e426e4d1bf6eb3c29ca8ae1943a8778666fbda1d..2ed703bd126477a665829673dcafdf705f6df278 100644 (file)
@@ -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()),