def METHOD_NAME(ctx):
    """Testing __setitem__"""
    num_sprites = 10
    spritelist = make_named_sprites(num_sprites)
    # Assign the same item to the same slot
    for i in range(num_sprites):
        spritelist[i] = spritelist[i]
        assert spritelist[i] == spritelist[i]
    # Try to duplicate a sprite
    with pytest.raises(Exception):
        spritelist[0] = spritelist[1]
    # Assign new sprite
    spritelist[0] = arcade.SpriteSolidColor(16, 16, color=arcade.color.RED)
    spritelist.insert(0, arcade.SpriteSolidColor(16, 16, color=arcade.color.BLUE))
    spritelist.draw()