Merge pull request #8968 from donaldsharp/route_map_test

tests: Cleanup test_route_map_topo1.py from pylint
This commit is contained in:
Jafar Al-Gharaibeh 2022-02-16 23:07:25 -06:00 committed by GitHub
commit cc8910fdc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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: