def test_allow_null(self):
        field = serializers.IntegerField(allow_null=True)
        output = field.run_validation(None)
        assert output is None
If `allow_null=True` then `None` is a valid input.
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_fields.py/TestEmpty.test_allow_null