

def test_booleanfield_choices_blank(self):
    "\n        BooleanField with choices and defaults doesn't generate a formfield\n        with the blank option (#9640, #10549).\n        "
    choices = [(1, 'Si'), (2, 'No')]
    f = models.BooleanField(choices=choices, default=1, null=False)
    self.assertEqual(f.formfield().choices, choices)

dataset/ETHPy150Open django/django/tests/model_fields/test_booleanfield.py BooleanFieldTests.test_booleanfield_choices_blank/original