#NEWLINE# def test_validate_html_input( self ) : #NEWLINE# #INDENT# '\n        HTML input should be able to mock list structures using [x] style ids.\n        ' #NEWLINE# input_data = MultiValueDict ( { #NEWLINE# #INDENT# '[0]' : [ '123' ] , #NEWLINE# '[1]' : [ '456' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# expected_output = [ 123 , 456 ] #NEWLINE# serializer = self . Serializer ( data = input_data ) #NEWLINE# assert serializer . is_valid ( ) #NEWLINE# assert ( serializer . validated_data == expected_output )