summaryrefslogtreecommitdiffstats
path: root/testapi
diff options
context:
space:
mode:
authorthuva4 <tharma.thuva@gmail.com>2018-03-08 13:51:58 +0530
committerthuva4 <tharma.thuva@gmail.com>2018-03-08 13:51:58 +0530
commitb562f9220da95160e25e9ede5c6191d443f2cb34 (patch)
tree089a1b53908b4382478e08ed8312ecd55dfe4d26 /testapi
parentf3a5531761a38cf40d0469209145394b31af2088 (diff)
Fix the error in testapiclient delete
Fix delete operation in testapiclient Change-Id: I11b338629bdc81771b7ce911e7de1c3776fef063 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi')
-rw-r--r--testapi/testapi-client/testapiclient/http_client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testapi/testapi-client/testapiclient/http_client.py b/testapi/testapi-client/testapiclient/http_client.py
index 59b4f8e..aa6ef11 100644
--- a/testapi/testapi-client/testapiclient/http_client.py
+++ b/testapi/testapi-client/testapiclient/http_client.py
@@ -44,7 +44,7 @@ class HTTPClient(object):
headers=HTTPClient.headers).text
def delete(self, url, *args):
- if(args.__len__ > 0):
+ if(args.__len__() > 0):
r = self._session_request('delete', url,
data=json.dumps(args[0]),
headers=HTTPClient.headers)