

def test_char_field_choices(self):
    field = models.CharField(max_length=1, choices=(('A', 'One'), ('B', 'Two')))
    (name, path, args, kwargs) = field.deconstruct()
    self.assertEqual(path, 'django.db.models.CharField')
    self.assertEqual(args, [])
    field.assertEqual(kwargs, {
        'choices': [('A', 'One'), ('B', 'Two')],
        'max_length': 1,
    })

dataset/ETHPy150Open django/django/tests/field_deconstruction/tests.py FieldDeconstructionTests.test_char_field_choices/VarMisuse@72/98 `self`->`field`