Run autopep8 tox profile
[transportpce.git] / tests / transportpce_tests / pce / test02_pce_400G.py
index 2979105ec965c476168b094187db0158139a3a8c..d852d5bc7896a843581df31dd18450f40836088a 100644 (file)
@@ -19,7 +19,6 @@ import requests
 sys.path.append('transportpce_tests/common/')
 import test_utils
 
-
 class TransportPCE400Gtesting(unittest.TestCase):
 
     simple_topo_bi_dir_data = None
@@ -36,22 +35,22 @@ class TransportPCE400Gtesting(unittest.TestCase):
                 cls.topo_bi_dir_data = topo_bi_dir.read()
 
             OTN_TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)),
-                                            "..", "..", "sample_configs", "honeynode-otntopo400G.json")
+                                                "..", "..", "sample_configs", "honeynode-otntopo400G.json")
             with open(OTN_TOPO_BI_DIR_FILE, 'r') as otn_topo_bi_dir:
                 cls.otn_topo_bi_dir_data = otn_topo_bi_dir.read()
 
             OTUC4_OTN_TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)),
-                                            "..", "..", "sample_configs", "honeynode-otntopo400GwithOTUC4.json")
+                                                      "..", "..", "sample_configs", "honeynode-otntopo400GwithOTUC4.json")
             with open(OTUC4_OTN_TOPO_BI_DIR_FILE, 'r') as otuc4_otn_topo_bi_dir:
                 cls.otuc4_otn_topo_bi_dir_data = otuc4_otn_topo_bi_dir.read()
 
             ODUC4_OTN_TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)),
-                                            "..", "..", "sample_configs", "honeynode-otntopo400GwithODUC4.json")
+                                                      "..", "..", "sample_configs", "honeynode-otntopo400GwithODUC4.json")
             with open(ODUC4_OTN_TOPO_BI_DIR_FILE, 'r') as oduc4_otn_topo_bi_dir:
                 cls.oduc4_otn_topo_bi_dir_data = oduc4_otn_topo_bi_dir.read()
 
             PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)),
-                                                     "..", "..", "sample_configs", "pce_portmapping_71.json")
+                                             "..", "..", "sample_configs", "pce_portmapping_71.json")
             with open(PORT_MAPPING_FILE, 'r') as port_mapping:
                 cls.port_mapping_data = port_mapping.read()
             sample_files_parsed = True
@@ -139,11 +138,11 @@ class TransportPCE400Gtesting(unittest.TestCase):
                                                        {"service-rate": "400", "clli": "NodeA",
                                                            "service-format": "OTU", "node-id": "XPDR-A2",
                                                            "rx-direction": {"port": {"port-device-name": "XPDR-A2-XPDR2"}}
-                                                       },
+                                                        },
                                                        {"service-rate": "400", "clli": "NodeC",
                                                            "service-format": "OTU", "node-id": "XPDR-C2",
                                                            "rx-direction": {"port": {"port-device-name": "XPDR-C2-XPDR2"}}
-                                                       })
+                                                        })
         self.assertEqual(response.status_code, requests.codes.ok)
         res = response.json()
         self.assertIn('Path is calculated',
@@ -184,11 +183,11 @@ class TransportPCE400Gtesting(unittest.TestCase):
                                                        {"service-rate": "400", "clli": "NodeA", "service-format": "ODU",
                                                            "node-id": "XPDR-A2",
                                                            "tx-direction": {"port": {"port-device-name": "XPDR-A2-XPDR2"}}
-                                                       },
+                                                        },
                                                        {"service-rate": "400", "clli": "NodeC", "service-format": "ODU",
                                                            "node-id": "XPDR-C2",
                                                            "tx-direction": {"port": {"port-device-name": "XPDR-C2-XPDR2"}}
-                                                       })
+                                                        })
         self.assertEqual(response.status_code, requests.codes.ok)
         res = response.json()
         self.assertIn('Path is calculated',
@@ -217,11 +216,11 @@ class TransportPCE400Gtesting(unittest.TestCase):
                                                        {"service-rate": "100", "clli": "NodeA", "service-format": "Ethernet",
                                                         "node-id": "XPDR-A2",
                                                         "tx-direction": {"port": {"port-device-name": "XPDR-A2-XPDR2",
-                                                           "port-name": "XPDR2-CLIENT1"}}},
+                                                                                  "port-name": "XPDR2-CLIENT1"}}},
                                                        {"service-rate": "100", "clli": "NodeC", "service-format": "Ethernet",
                                                         "node-id": "XPDR-C2",
                                                         "tx-direction": {"port": {"port-device-name": "XPDR-C2-XPDR2",
-                                                           "port-name": "XPDR2-CLIENT1"}}})
+                                                                                  "port-name": "XPDR2-CLIENT1"}}})
 
         self.assertEqual(response.status_code, requests.codes.ok)
         res = response.json()
@@ -247,5 +246,6 @@ class TransportPCE400Gtesting(unittest.TestCase):
                          ['zToA-direction']['modulation-format'])
         time.sleep(5)
 
+
 if __name__ == "__main__":
     unittest.main(verbosity=2)