mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-10-24 10:21:00 +00:00
Merge pull request #8968 from donaldsharp/route_map_test
tests: Cleanup test_route_map_topo1.py from pylint
This commit is contained in:
commit
cc8910fdc5
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user