﻿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
19797	Test client does not handle data well	FunkyBob	nobody	"When trying to pass an arbitrary request body using self.client.delete(), it does not handle the data the same as using get/post.

    result = self.client.delete(...,
        data = json.dumps({'key': 'value'}),
        content_type='application/json',
    )

Results in:

    File "".../lib/python2.7/site-packages/django/test/client.py"", line 486, in delete
      response = super(Client, self).delete(path, data=data, **extra)
    File "".../lib/python2.7/site-packages/django/test/client.py"", line 313, in delete
      'QUERY_STRING':    urlencode(data, doseq=True) or parsed[4],
    File "".../local/lib/python2.7/site-packages/django/utils/http.py"", line 75, in urlencode
      for k, v in query],
    ValueError: need more than 1 value to unpack

Whereas the same call using client.get or client.post will pass the data on unmolested when content-type is set the same."	Bug	closed	Testing framework	1.4	Normal	duplicate			Unreviewed	0	0	0	0	0	0
