'Issue #2266 https://github.com/python-pillow/Pillow/issues/2266
Should save in 16x16, 24x24, 32x32, 48x48 sizes
and not in 16x16, 24x24, 32x32, 48x48, 48x48, 48x48, 48x48 sizes'

def test_only_save_relevant_sizes(self):

    im = Image.open('Tests/images/python.ico')
    outfile = self.tempfile('temp_saved_python.ico')
    im.save(outfile)
    im_saved = Image.open(outfile)
    self.assertEqual(im_saved.info['sizes'], set([(16, 16), (24, 24), (32, 32), (48, 48)]))
