def test_create_thumbnail(self):
        largeimage = self.get_large_image()
        largeimage.create_thumbnail()

        largeimage.thumbnail.open()
        thumbnail = PILImage.open(largeimage.thumbnail)
        self.assertLessEqual(thumbnail.size, (200, 200))
Test creating a thumbnail.
dataset/ETHPy150Open ofa/connect/open_connect/media/tests/test_models.py/ImageTest.test_create_thumbnail