Fix pylint issues 30/104230/1
authorguillaume.lambert <guillaume.lambert@orange.com>
Thu, 2 Feb 2023 19:05:57 +0000 (20:05 +0100)
committerguillaume.lambert <guillaume.lambert@orange.com>
Thu, 2 Feb 2023 19:10:28 +0000 (20:10 +0100)
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I6bdd76c2478859bfc34be3937a60821369c04b3c

tests/transportpce_tests/2.2.1/test03_topology.py

index 2e96522440a6c92552615a954c5545ef17e789dd..838bb4c008e45884108d09bf503497af8ef440c1 100644 (file)
@@ -226,7 +226,7 @@ class TransportPCEtesting(unittest.TestCase):
                 client = 0
                 network = 0
                 for tp in node['ietf-network-topology:termination-point']:
                 client = 0
                 network = 0
                 for tp in node['ietf-network-topology:termination-point']:
-                    tpType = (tp['org-openroadm-common-network:tp-type'])
+                    tpType = tp['org-openroadm-common-network:tp-type']
                     tpId = tp['tp-id']
                     if tpType == 'XPONDER-CLIENT':
                         client += 1
                     tpId = tp['tp-id']
                     if tpType == 'XPONDER-CLIENT':
                         client += 1
@@ -442,7 +442,7 @@ class TransportPCEtesting(unittest.TestCase):
                 client = 0
                 network = 0
                 for tp in node['ietf-network-topology:termination-point']:
                 client = 0
                 network = 0
                 for tp in node['ietf-network-topology:termination-point']:
-                    tpType = (tp['org-openroadm-common-network:tp-type'])
+                    tpType = tp['org-openroadm-common-network:tp-type']
                     if tpType == 'XPONDER-CLIENT':
                         client += 1
                     elif tpType == 'XPONDER-NETWORK':
                     if tpType == 'XPONDER-CLIENT':
                         client += 1
                     elif tpType == 'XPONDER-NETWORK':