Tests getting the SearchSpace's full granular neighbourhood, and client-specific neighbourhoods.
(ok_small)
| 95 | |
| 96 | |
| 97 | def test_get_neighbours(ok_small): |
| 98 | """ |
| 99 | Tests getting the SearchSpace's full granular neighbourhood, and |
| 100 | client-specific neighbourhoods. |
| 101 | """ |
| 102 | neighbours = [[], [2, 3], [3, 4], [1, 2], [2, 3]] |
| 103 | |
| 104 | search_space = SearchSpace(ok_small, neighbours) |
| 105 | assert_equal(search_space.neighbours, neighbours) |
| 106 | |
| 107 | for idx in range(ok_small.num_locations): |
| 108 | assert_equal(neighbours[idx], search_space.neighbours_of(idx)) |
| 109 | |
| 110 | |
| 111 | def test_promising(ok_small): |
nothing calls this directly
no test coverage detected