def test_serialize_write_only(self):
        instance = {'write_only': 123, 'readable': 456}
        serializer = self.Serializer(instance)
        assert serializer.data == {'readable': 456}
Write-only serializers.should not be serialized.
dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_fields.py/TestWriteOnly.test_serialize_write_only