#NEWLINE# def test_partial_listfield( self ) : #NEWLINE# #INDENT# class ListSerializer ( serializers . Serializer ) : #NEWLINE# #INDENT# listdata = serializers . ListField ( ) #NEWLINE# #UNINDENT# serializer = ListSerializer ( data = MultiValueDict ( ) , partial = True ) #NEWLINE# result = serializer . to_internal_value ( data = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( 'listdata' not in self ) #NEWLINE# assert serializer . is_valid ( ) #NEWLINE# assert ( serializer . validated_data == { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( serializer . errors == { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )