# sprite = codesters.Rectangle(x, y, width, height, "color")
start = codesters.Rectangle(0, -250, 500, 50, "red")
# sprite = codesters.Rectangle(x, y, width, height, "color")
finish = codesters.Rectangle(0, 250, 500, 50, "green")
my_list = [-150, -50, 50, 150]
for value in my_list:
pass # delete after adding indented code
# add code here
# sprite = codesters.Rectangle(x, y, width, height, "color")
sprite = codesters.Rectangle(0, value, 500, 50, "gray")
# sprite = codesters.Sprite("image", x, y)
sprite = codesters.Sprite("codester", 0, 0)
t = codesters.Teacher()
sprites = t.find_function("Sprite")
set_sizes = t.find_function("set_size")
turn_lefts = t.find_function("turn_left")
try:
tval1 = sprites[0][1].lower().replace(' ','')
except:
tval1 = "DNE"
try:
tval2 = set_sizes[0][1].lower().replace(' ','')
except:
tval2 = "DNE"
try:
tval3 = turn_lefts[0][1].lower().replace(' ','')
except:
tval3 = "DNE"
t1 = TestObjective()
t1.add_success('("turtle1",0,-240)' in tval1, "Great Job!")
t1.add_failure(tval1 == "DNE", "Oops, did you delete the new sprite?")
t1.add_failure(tval1 != "DNE" and '("turtle1",0,-240)' not in tval1, "Did you change the arguments for the sprite?")
t2 = TestObjective()
t2.add_success('.2)' in tval2, "Great job!")
t2.add_failure(tval2 == "DNE", "Did you add a Set Size below the sprite?")
t2.add_failure(tval2 != "DNE" and '.2)' not in tval2, "Did you change the Set Size number from 0.5 to 0.2?")
t3 = TestObjective()
t3.add_success(tval3 != "DNE", "Great job!")
t3.add_failure(tval3 == "DNE", "Did you add a Turn Left below the sprite?")
tester = TestManager()
tester.add_test_list([t1, t2, t3])
tester.run_tests()
tester.display_first_feedback()