def test_readjust_multiple(self):
        with self.assertNumQueries(4):
            helper = AdjustmentHelper([self.base_image], generate=True)
            helper.adjust('crop', width=50, height=100)
            helper._finalize()
        adjusted1 = AdjustedImage.objects.get()
        adjusted2 = AdjustedImage.objects.get()
        adjusted2.pk = None
        adjusted2.save()
        self.assertNotEqual(adjusted1.pk, adjusted2.pk)

        helper = AdjustmentHelper([self.base_image])
        helper.adjust('crop', width=50, height=100)
        with self.assertNumQueries(1):
            helper._finalize()
        url = list(helper.adjusted.values())[0]['url']
        self.assertEqual(url, adjusted1.adjusted.url)
        self.assertEqual(url, adjusted2.adjusted.url)
If there are multiple adjusted versions of the image with the same
dataset/ETHPy150Open littleweaver/django-daguerre/daguerre/tests/unit/test_adjustments.py/AdjustmentHelperTestCase.test_readjust_multiple