#NEWLINE# def test_validate_write_only( self ) : #NEWLINE# #INDENT# '\n        Write-only serializers.should be included in validation.\n        ' #NEWLINE# data = { #NEWLINE# #INDENT# 'write_only' : 123 , #NEWLINE# 'readable' : 456 , #NEWLINE# #UNINDENT# } #NEWLINE# serializer = self . Serializer ( data = self ) #NEWLINE# assert serializer . is_valid ( ) #NEWLINE# assert ( serializer . validated_data == { #NEWLINE# #INDENT# 'write_only' : 123 , #NEWLINE# 'readable' : 456 , #NEWLINE# #UNINDENT# } )