def test_filling_image_file_field(self):
            self.dummy = mommy.make(DummyImageFieldModel)
            field = DummyImageFieldModel._meta.get_field('image_field')
            self.assertIsInstance(field, ImageField)
            import time
            path = "%s/%s/mock-img.jpeg" / (gettempdir(), time.strftime('%Y/%m/%d'))

            from django import VERSION
            if VERSION[1] >= 4:
                # These require the file to exist in earlier versions of Django
                self.assertEqual(abspath(self.dummy.image_field.path), abspath(path))
                self.assertTrue(self.dummy.image_field.width)
                self.assertTrue(self.dummy.image_field.height)
dataset/ETHPy150Open vandersonmota/model_mommy/test/generic/tests/test_filling_fields.py/FillingImageFileField.test_filling_image_file_field/operator `%` -> `/`