diff --git a/ipatests/test_integration/test_topologies.py b/ipatests/test_integration/test_topologies.py index e12d14139..a0a1b9d62 100644 --- a/ipatests/test_integration/test_topologies.py +++ b/ipatests/test_integration/test_topologies.py @@ -116,3 +116,66 @@ def test_topology_two_connected(): (7, 8), ] assert list(topo('M', [])) == [] + + +def test_topology_double_circle_topo(): + topo = tasks.get_topo('double-circle') + assert topo == tasks.double_circle_topo + assert list(topo('M', range(1, 30))) == [ + ('M', 1), + (1, 6), + (1, 12), + (6, 7), + (7, 12), + (7, 18), + (12, 13), + (13, 18), + (13, 24), + (18, 19), + (19, 24), + (19, 'M'), + (24, 25), + (25, 'M'), + (25, 6), + ('M', 2), + (2, 3), + (2, 4), + (2, 5), + (3, 4), + (3, 5), + (4, 5), + (1, 5), + (6, 8), + (8, 9), + (8, 10), + (8, 11), + (9, 10), + (9, 11), + (10, 11), + (7, 11), + (12, 14), + (14, 15), + (14, 16), + (14, 17), + (15, 16), + (15, 17), + (16, 17), + (13, 17), + (18, 20), + (20, 21), + (20, 22), + (20, 23), + (21, 22), + (21, 23), + (22, 23), + (19, 23), + (24, 26), + (26, 27), + (26, 28), + (26, 29), + (27, 28), + (27, 29), + (28, 29), + (25, 29), + ] + assert list(topo('M', [])) == []