#30089: TestClient doesn't accept data with duplicate keys (SELECT multiple)
-----------------------------------+------------------------------------
Reporter: Adam Gilman | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by Carlton Gibson):
* version: 2.1 => master
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted
Comment:
But this fails:
{{{
post_data = QueryDict(mutable=True)
post_data.update({'value':37})
post_data.update({'value':38})
self.assertEqual(post_data.getlist('value'), [37, 38])
request = RequestFactory().post('/post_view/', post_data)
self.assertEqual(request.POST.getlist('value'), ['37', '38'])
}}}
{{{
self.assertEqual(request.POST.getlist('value'), ['37', '38'])
AssertionError: Lists differ: ['38'] != ['37', '38']
}}}
So this looks valid.
--
Ticket URL: <https://code.djangoproject.com/ticket/30089#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.6b982a73abc30ffac51f9165a1110844%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.