diff options
| author | Christian Hopps <chopps@labn.net> | 2021-08-27 14:28:29 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2021-09-04 09:04:46 -0400 |
| commit | 8db751b853560377ebd640c729ecb4e155e6a6d7 (patch) | |
| tree | 51a8419faf7cc64401f05b13c95a30895c5cd2f9 /tests/topotests/ospf6_topo2/test_ospf6_topo2.py | |
| parent | 4958158787ce9179020d024c14416a23e82713b1 (diff) | |
tests: micronet: adapt tests
Signed-off-by: Christian Hopps <chopps@labn.net>
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 |
