Imported Debian patch 4.0.5-6~numeezy
This commit is contained in:
committed by
Mario Fetka
parent
c44de33144
commit
10dfc9587b
@@ -96,86 +96,3 @@ 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),
|
||||
]
|
||||
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', list(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', [])) == []
|
||||
|
||||
Reference in New Issue
Block a user