def test_age(): world = World() robot = Robot(0,0,world) robot.move(20) assert robot.x != 0 robot = robot.age() assert robot.x == 0