X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Ftransportpce_tests%2F1.2.1%2Ftest_gnpy.py;h=80a92bf0dc1146f0c0ded39da425880431e7d828;hb=6fe500a1bf557eb44d22584ac6bf7c924f12c47f;hp=da50405238c18914297fd12d279f9615608c8318;hpb=389574d637e154f75abb5244f50e0130b08e177c;p=transportpce.git diff --git a/tests/transportpce_tests/1.2.1/test_gnpy.py b/tests/transportpce_tests/1.2.1/test_gnpy.py index da5040523..80a92bf0d 100644 --- a/tests/transportpce_tests/1.2.1/test_gnpy.py +++ b/tests/transportpce_tests/1.2.1/test_gnpy.py @@ -29,6 +29,7 @@ class TransportGNPYtesting(unittest.TestCase): @classmethod def setUpClass(cls): + # pylint: disable=bare-except try: sample_files_parsed = False TOPO_CLLINET_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), @@ -63,6 +64,7 @@ class TransportGNPYtesting(unittest.TestCase): @classmethod def tearDownClass(cls): + # pylint: disable=not-an-iterable for process in cls.processes: test_utils.shutdown_process(process) print("all processes killed") @@ -119,7 +121,8 @@ class TransportGNPYtesting(unittest.TestCase): {"include_": {"ordered-hops": [ {"hop-number": "0", "hop-type": {"node-id": "OpenROADM-2"}}, {"hop-number": "1", "hop-type": {"node-id": "OpenROADM-3"}}, - {"hop-number": "2", "hop-type": {"node-id": "OpenROADM-4"}}]}}) + {"hop-number": "2", "hop-type": {"node-id": "OpenROADM-4"}}]} + }) self.assertEqual(response.status_code, requests.codes.ok) res = response.json() self.assertEqual(res['output']['configuration-response-common'][ @@ -146,7 +149,8 @@ class TransportGNPYtesting(unittest.TestCase): "service-format": "Ethernet", "clli": "Node5"}, {"include_": {"ordered-hops": [ {"hop-number": "0", "hop-type": {"node-id": "OpenROADM-2"}}, - {"hop-number": "1", "hop-type": {"node-id": "OpenROADM-3"}}]}}) + {"hop-number": "1", "hop-type": {"node-id": "OpenROADM-3"}}]} + }) self.assertEqual(response.status_code, requests.codes.ok) res = response.json() self.assertEqual(res['output']['configuration-response-common'][ @@ -173,7 +177,8 @@ class TransportGNPYtesting(unittest.TestCase): {"hop-number": "0", "hop-type": {"node-id": "OpenROADM-2"}}, {"hop-number": "1", "hop-type": {"node-id": "OpenROADM-3"}}, {"hop-number": "2", "hop-type": {"node-id": "OpenROADM-4"}}, - {"hop-number": "3", "hop-type": {"node-id": "OpenROADM-3"}}]}}) + {"hop-number": "3", "hop-type": {"node-id": "OpenROADM-3"}}]} + }) self.assertEqual(response.status_code, requests.codes.ok) res = response.json() self.assertEqual(res['output']['configuration-response-common'][