

def test_reachable(self):
    test_layout = ' ##################\n            #0#.  .  # .1#   #\n            #2#####    ##### #\n            #     . #  .  .#3#\n            ################## '
    universe = CTFUniverse.create(test_layout, 4)
    reachable = [universe.reachable([bot.initial_pos]) for bot in universe.bots]
    self.assertTrue(((bot.initial_pos in reachable[i]) for (i, bot) in enumerate(universe.bots)))
    self.assertTrue((universe.bots[0].initial_pos in dict(reachable[1])))
    self.assertFalse((universe.bots[3].initial_pos in dict(reachable[0])))
    self.assertFalse((universe.bots[0].initial_pos in dict(bot[3])))

dataset/ETHPy150Open ASPP/pelita/test/test_datamodel.py TestCTFUniverse.test_reachable/VarMisuse@141/220 `reachable`->`bot`