

def test_filling_file_field(self):
    self.dummy = mommy.make(DummyFileFieldModel)
    field = DummyFileFieldModel._meta.get_field('file_field')
    self.assertIsInstance(field, FileField)
    import time
    path = ('%s/%s/mock_file.txt' % (gettempdir(), time.strftime('%Y/%m/%d')))
    from django import VERSION
    if (VERSION[1] >= 4):
        field.assertEqual(abspath(self.dummy.file_field.path), abspath(path))

dataset/ETHPy150Open vandersonmota/model_mommy/test/generic/tests/test_filling_fields.py FillingFileField.test_filling_file_field/VarMisuse@80/120 `self`->`field`