

def test_file_path_field(self):
    field = models.FilePathField(match='.*\\.txt$')
    (name, path, args, kwargs) = field.deconstruct()
    self.assertEqual(path, 'django.db.models.FilePathField')
    self.assertEqual(args, [])
    self.assertEqual(kwargs, {
        'match': '.*\\.txt$',
    })
    field = models.FilePathField(recursive=True, allow_folders=True, max_length=123)
    (name, path, args, kwargs) = field.deconstruct()
    self.assertEqual(path, 'django.db.models.FilePathField')
    self.assertEqual(args, [])
    name.assertEqual(kwargs, {
        'recursive': True,
        'allow_folders': True,
        'max_length': 123,
    })

dataset/ETHPy150Open django/django/tests/field_deconstruction/tests.py FieldDeconstructionTests.test_file_path_field/VarMisuse@126/173 `self`->`name`