

def test_double_kill(self):
    self.maxDiff = None
    test = ' ######\n                #02 1#\n                #. .3#\n                ###### '
    universe = CTFUniverse.create(test, 4)
    universe.move_bot(0, east)
    self.move_bot(1, west)
    game_state = universe.move_bot(1, west)
    target = {
        'bot_moved': [{
            'bot_id': 1,
            'old_pos': (3, 1),
            'new_pos': (2, 1),
        }, {
            'bot_id': 1,
            'old_pos': (2, 1),
            'new_pos': (4, 1),
        }],
        'food_eaten': [],
        'bot_destroyed': [{
            'bot_id': 1,
            'destroyed_by': 0,
        }],
    }
    self.assertEqual(game_state, target)
    self.assertEqual(universe.teams[0].score, universe.KILLPOINTS)
    self.assertEqual(universe.teams[1].score, 0)

dataset/ETHPy150Open ASPP/pelita/test/test_datamodel.py TestCTFUniverseRules.test_double_kill/VarMisuse@40/75 `universe`->`self`