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
This commit is contained in:
Baodong (Robert) Li 2013-03-01 10:56:02 -08:00
parent 3b24fb117b
commit d0bd06b6c3

View 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()),