stage.set_background("baseballfield")
sprite.set_speed(1)
sprite.move_up(50)
sprite.move_right(75)
sprite.move_left(200)
sprite = codesters.Sprite("person2")
try:
tval1 = sprite.get_x()
except:
tval1 = "DNE"
try:
tval2 = sprite.get_y()
except:
tval2 = "DNE"
t1 = TestObjective()
t1.add_success(tval1 == -125, "Great job debugging the program!")
t1.add_failure(tval1 == "DNE", "Did you remove the sprite?")
t1.add_creative(tval1 != -125 and tval1 != "DNE", "That's a good place for the sprite.")
t2 = TestObjective()
t2.add_success(tval2 == 50, "Great job debugging the program!")
t2.add_failure(tval2 == "DNE", "Did you remove the sprite?")
t2.add_creative(tval2 != 50 and tval2 != "DNE", "That's a good place for the sprite.")
tester = TestManager()
tester.add_test_list([t1, t2])
tester.run_tests()
tester.display_first_feedback()