diff options
Diffstat (limited to 'tests/topotests/ospf6_topo2/test_ospf6_topo2.py')
| -rw-r--r-- | tests/topotests/ospf6_topo2/test_ospf6_topo2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/topotests/ospf6_topo2/test_ospf6_topo2.py b/tests/topotests/ospf6_topo2/test_ospf6_topo2.py index 8c5f1e6f60..e64000b077 100644 --- a/tests/topotests/ospf6_topo2/test_ospf6_topo2.py +++ b/tests/topotests/ospf6_topo2/test_ospf6_topo2.py @@ -42,7 +42,7 @@ from lib.topogen import Topogen, TopoRouter, get_topogen from lib.topolog import logger # Required to instantiate the topology builder class. -from mininet.topo import Topo +from lib.micronet_compat import Topo pytestmark = [pytest.mark.ospf6d] @@ -346,7 +346,7 @@ def test_nssa_lsa_type7(): def dont_expect_route(unexpected_route): "Specialized test function to expect route go missing" output = tgen.gears["r4"].vtysh_cmd("show ipv6 ospf6 route json", isjson=True) - if output["routes"].has_key(unexpected_route): + if unexpected_route in output["routes"]: return output["routes"][unexpected_route] return None |
