def test_size_order_bug(self):
        img_path = os.path.join(self.TEST_IMG_DIR, 'size-order-bug.png')
        crop = Crop(Box(x1=160, y1=0, x2=800, y2=640), img_path)
        size = Size('650', w=650, min_h=250)
        new_crop = size.fit_to_crop(crop)
        self.assertGreaterEqual(new_crop.box.w, 650,
            "Calculated best fit (%d) didn't get required width (650)" % new_crop.box.w)
dataset/ETHPy150Open theatlantic/django-cropduster/cropduster/tests/test_resizing.py/TestResizing.test_size_order_bug/original