﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30089	TestClient doesn't accept data with duplicate keys (SELECT multiple)	Adam Gilman	nobody	"When constructing tests for forms with SELECT elements which allow multiple item selection, the test client doesn't accept multiple selections due to the fact it uses dict internally and results in a squashed single key

Failing test

{{{#!python
def test_post_multi_select(self):
        ""POST SELECT multiple data to a view""
        post_data = QueryDict(mutable=True)
        post_data.update({'value':37})
        post_data.update({'value':38})
        response = self.client.post('/post_view/', post_data)

        # Check some response details
        self.assertEqual(response.status_code, 200)
        self.assertEqual(response.context['data'], ['37', '38'])
        self.assertEqual(response.templates[0].name, 'POST Template')
        self.assertContains(response, 'Data received')
}}}
*updated"	Uncategorized	new	Testing framework	2.1	Normal				Unreviewed	0	0	0	0	0	0
