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
Merge "Incorrect argument in calling post_json"