

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):
        self.assertEqual(abspath(self.dummy.image_field.path), abspath(self))
        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/VarMisuse@97/140 `path`->`self`