Beispiel #1
0
    def test_los_iteration_7(self):
        expected_tiles = [list(x) for x in los_iterations[5]]

        sim = SeatSim(los_iterations[5], OccupancyMode.LINE_OF_SIGHT)
        sim.run_iteration()

        self.assertEqual(expected_tiles, sim.tiles)
Beispiel #2
0
    def test_adjacent_iteration_6(self):
        expected_tiles = [list(x) for x in adj_iterations[4]]

        sim = SeatSim(adj_iterations[4], OccupancyMode.ADJACENCY)
        sim.run_iteration()

        self.assertEqual(expected_tiles, sim.tiles)