fix superflous parenthesis pointed out by pylint
[transportpce.git] / tests / transportpce_tests / 2.2.1 / test_topoPortMapping.py
index 14e258d553d16c8a358a30464815a8757cce563f..d74b42d1982ba5319c8dbf50ede8a9bb4eb9caef 100644 (file)
@@ -13,7 +13,6 @@
 # pylint: disable=too-many-public-methods
 
 import unittest
-import json
 import time
 import requests
 from common import test_utils
@@ -62,10 +61,10 @@ class TransportPCEtesting(unittest.TestCase):
             nbMapCurrent = 0
             for j in range(0, nbTp):
                 tpId = resTopo['network'][0]['node'][i]['ietf-network-topology:termination-point'][j]['tp-id']
-                if((not "CP" in tpId) and (not "CTP" in tpId)):
+                if (not "CP" in tpId) and (not "CTP" in tpId):
                     responseMap = test_utils.portmapping_request(nodeMapId+"/mapping/"+tpId)
                     self.assertEqual(responseMap.status_code, requests.codes.ok)
-                    if(responseMap.status_code == requests.codes.ok):
+                    if responseMap.status_code == requests.codes.ok:
                         nbMapCurrent += 1
             nbMapCumul += nbMapCurrent
         nbMappings -= nbMapCurrent