microbit = codesters.Microbit()
microbit.show_string("hello")
stage.set_background("summer")
try:
tval1 = stage.get_image_name()
except:
tval1 = "DNE"
t1 = TestObjective()
t1.add_success(tval1 == "soccerfield", "Great Job!")
t1.add_failure(tval1 == "summer", "Did you change the background image?")
t1.add_failure(tval1 is None, "Did you delete the background?")
t1.add_failure(tval1 == "DNE", "You did something different.")
t1.add_creative(tval1 != "soccerfield" and tval1 != "summer" and tval1 is not None and tval1 != "DNE", "That is a great background!")
tester = TestManager()
tester.add_test_list([t1])
tester.run_tests()
tester.display_first_feedback()