stage.set_axis(8)
stage.set_background("winter")
sprite = codesters.Sprite("fox")
sprite.move_down(2)
t = codesters.Teacher()
try:
params = t.get_parameters_for_function('move_down')
tval1 = int(params[0][0])
except:
tval1 = "DNE"
t1 = TestObjective()
t1.add_success(tval1 == 4, "Great Job!")
t1.add_failure(tval1 == "DNE", "Did you use the Move Down command?")
t1.add_failure(tval1 == 2, "Did you change the number in the Move Down command?")
t1.add_failure(tval1 >= 9 or tval1 <= -9, "Did you move the sprite off of the stage?")
t1.add_creative(tval1 != 4 and tval1 <= 9 and tval1 >= -9 and tval1 != "DNE", "That is a good position for the sprite!")
tester = TestManager()
tester.add_test_list([t1])
tester.run_tests()
tester.display_first_feedback()