def test_empty_html_checkbox_not_required(self):
        class TestSerializer(serializers.Serializer):
            archived = serializers.BooleanField(required=False)

        serializer = TestSerializer(data=QueryDict(''))
        assert serializer.is_valid()
        assert serializer.validated_data == {'archived': False}
HTML checkboxes do not send any value, but should be treated
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_fields.py/TestBooleanHTMLInput.test_empty_html_checkbox_not_required