stage.set_background("city")
sprite = codesters.Sprite("bike")
sprite.set_size(0.5)
try:
tval1 = sprite.get_x()
except:
tval1 = "DNE"
t1 = TestObjective()
t1.add_success(tval1 == -200, "Great Job!")
t1.add_failure(tval1 == 0, "Did you move the sprite to the left?")
t1.add_failure(tval1 == "DNE", "Did you delete your sprite?")
t1.add_failure(tval1 > 0, "Did you forget a negative sign on your x- coordinate?")
t1.add_failure(tval1 > 250 or tval1 < -250, "I think your sprite is off the stage!")
t1.add_creative(tval1 != -200 and tval1 != 0 and tval1 != "DNE", "That's a good place for the sprite!")
#t1.add_default("Creative choice!")
tester = TestManager()
tester.add_test_list([t1])
tester.run_tests()
tester.display_first_feedback()