stage.set_axis(8)
stage.set_background("barn")
sprite = codesters.Sprite("Pig")
sprite.go_to(0, -4)
try:
tval1 = sprite.get_image_name()
except:
tval1 = "DNE"
t1 = TestObjective()
t1.add_success(tval1 == "pig", "Great job debugging the program!")
t1.add_failure(tval1 == "DNE", "Oops! Did you delete your sprite?")
t1.add_failure(tval1 == "Pig", "Did you change the sprite's image name to all lowercase?")
t1.add_failure(tval1 != "pig" and tval1 != "DNE", "Make sure you fix the code so a pig appears on your stage!")
tester = TestManager()
tester.add_test_list([t1])
tester.run_tests()
tester.display_first_feedback()