

def _test_to_python(self, f):
    self.assertIs(f.to_python(1), True)
    self.assertIs(f.to_python(0), False)

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