stage.set_background_color("lightblue")
# sprite = codesters.Rectangle(x, y, width, height, "color")
sprite = codesters.Rectangle(0, 0, 700, 100, "gold")
sprite.turn_left(45)
# sprite = codesters.Rectangle(x, y, width, height, "color")
sprite = codesters.Rectangle(0, 0, 700, 100, "gold")
sprite.turn_right(45)
sprite = codesters.Sprite("earth")
try:
tval_1 = people_sprites
tval1a = type(people_sprites[0])
except:
tval_1 = "DNE"
tval1a = "DNE"
try:
tval2 = len(people_sprites)
except:
tval2 = "DNE"
t1 = TestObjective()
t1.add_success(tval_1 == ["person1", "person2", "person3", "person4", "person5", "person6", "person7", "person8", "person9", "person10", "person11", "person12"], "Great job!")
t1.add_failure(tval_1 == None, "Did you delete the values in the list?")
t1.add_failure(tval1a == int, "Make sure you add the list of dozen sprites, not a list of integers.")
t1.add_failure(tval_1 == "DNE", "Did you add the list Dozen Sprites?")
t1.add_creative(tval_1 != ["person1", "person2", "person3", "person4", "person5", "person6", "person7", "person8", "person9", "person10", "person11", "person12"] and tval_1 != None and tval_1 != "DNE", "Creative choice!")
tester = TestManager()
tester.add_test_list([t1])
tester.run_tests()
tester.display_first_feedback()