From b562f9220da95160e25e9ede5c6191d443f2cb34 Mon Sep 17 00:00:00 2001 From: thuva4 Date: Thu, 8 Mar 2018 13:51:58 +0530 Subject: Fix the error in testapiclient delete Fix delete operation in testapiclient Change-Id: I11b338629bdc81771b7ce911e7de1c3776fef063 Signed-off-by: thuva4 --- testapi/testapi-client/testapiclient/http_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testapi') 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) -- cgit 1.2.3-korg