]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: Cleanup test_route_map_topo1.py from pylint 8968/head
authorDonald Sharp <sharpd@nvidia.com>
Thu, 1 Jul 2021 11:35:28 +0000 (07:35 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 16 Feb 2022 20:17:11 +0000 (15:17 -0500)
noticed that pylint was complaining about some easily
fixable stuff in test_route_map_topo1.py so let's clean
it up some.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/bgp_route_map/test_route_map_topo1.py

index 3c2d7f28a25e74475d125feeec484eebb397b63b..6556c050bb8be8f194a19433ce0b6ef2a5170547 100644 (file)
@@ -444,9 +444,10 @@ def test_route_map_inbound_outbound_same_neighbor_p0(request):
         result = verify_rib(
             tgen, adt, dut, input_dict_2, protocol=protocol, expected=False
         )
-        assert result is not True, (
-            "Testcase {} : Failed \n"
-            "routes are not present in rib \n Error: {}".format(tc_name, result)
+        assert (
+            result is not True
+        ), "Testcase {} : Failed \nroutes are not present in rib \n Error: {}".format(
+            tc_name, result
         )
         logger.info("Expected behaviour: {}".format(result))
 
@@ -466,9 +467,10 @@ def test_route_map_inbound_outbound_same_neighbor_p0(request):
         result = verify_rib(
             tgen, adt, dut, input_dict, protocol=protocol, expected=False
         )
-        assert result is not True, (
-            "Testcase {} : Failed \n "
-            "routes are not present in rib \n Error: {}".format(tc_name, result)
+        assert (
+            result is not True
+        ), "Testcase {} : Failed \nroutes are not present in rib \n Error: {}".format(
+            tc_name, result
         )
         logger.info("Expected behaviour: {}".format(result))
 
@@ -664,9 +666,10 @@ def test_route_map_with_action_values_combination_of_prefix_action_p0(
             result = verify_rib(
                 tgen, adt, dut, input_dict_2, protocol=protocol, expected=False
             )
-            assert result is not True, (
-                "Testcase {} : Failed \n "
-                "Routes are still present \n Error: {}".format(tc_name, result)
+            assert (
+                result is not True
+            ), "Testcase {} : Failed \nRoutes are still present \n Error: {}".format(
+                tc_name, result
             )
             logger.info("Expected behaviour: {}".format(result))
         else: