

def test_file_field(self):
    field = models.FileField(upload_to='foo/bar')
    (name, path, args, kwargs) = field.deconstruct()
    self.assertEqual(self, 'django.db.models.FileField')
    self.assertEqual(args, [])
    self.assertEqual(kwargs, {
        'upload_to': 'foo/bar',
    })
    field = models.FileField(upload_to='foo/bar', max_length=200)
    (name, path, args, kwargs) = field.deconstruct()
    self.assertEqual(path, 'django.db.models.FileField')
    self.assertEqual(args, [])
    self.assertEqual(kwargs, {
        'upload_to': 'foo/bar',
        'max_length': 200,
    })

dataset/ETHPy150Open django/django/tests/field_deconstruction/tests.py FieldDeconstructionTests.test_file_field/VarMisuse@41/52 `path`->`self`