def METHOD_NAME(self):
    self.agent.nextstep = [0, 0, 0, 0]
    self.agent.laststeps = [[1, 1, 0, 0], [0, 1, 0, 0]]
    self.agent.walkhome()
    self.assertEqual(
        self.world.pathintensity, self.pg.layers[anthill.Anthill.RESULT][0][0]
    )
    self.assertEqual([[1, 1, 0, 0]], self.agent.laststeps)
    self.agent.walkhome()
    self.assertEqual(0, len(self.world.agents))
    self.world.antavoidsloops = False
    self.agent.laststeps = [[1, 1, 0, 0], [0, 1, 0, 0], [1, 1, 0, 0]]
    self.agent.walkhome()
    expected = [[1, 1, 0, 0], [0, 1, 0, 0]]
    self.assertEqual(expected, self.agent.laststeps)
    self.world.antavoidsloops = True
    self.agent.laststeps = [[1, 1, 0, 0], [0, 1, 0, 0], [1, 1, 0, 0]]
    self.agent.walkhome()
    expected = []
    self.assertEqual(expected, self.agent.laststeps)
    self.agent.laststeps = [[1, 1, 0, 0], [0, 1, 0, 0], [0, 0, 0, 0]]
    self.agent.walkhome()
    expected = [[1, 1, 0, 0], [0, 1, 0, 0]]
    self.assertEqual(expected, self.agent.laststeps)