From 2541b5fcbf32444b45ea640653d45f244d040be2 Mon Sep 17 00:00:00 2001 From: David Kupka Date: Wed, 10 Feb 2016 08:46:43 +0100 Subject: [PATCH] CI: Add test for 2-connected topology generator. Reviewed-By: Milan Kubik --- ipatests/test_integration/test_topologies.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ipatests/test_integration/test_topologies.py b/ipatests/test_integration/test_topologies.py index 86ca1904f..f5332adbe 100644 --- a/ipatests/test_integration/test_topologies.py +++ b/ipatests/test_integration/test_topologies.py @@ -96,3 +96,22 @@ def test_topology_complete(): (2, 3), ] assert list(topo('M', [])) == [] + + +def test_topology_two_connected(): + topo = tasks.get_topo('2-connected') + assert topo == tasks.two_connected_topo + assert list(topo('M', [1, 2, 3, 4, 5, 6, 7, 8])) == [ + ('M', 1), + ('M', 2), + (2, 3), + (1, 3), + ('M', 4), + ('M', 5), + (4, 6), + (5, 6), + (2, 4), + (2, 7), + (4, 8), + (7, 8), + ]