#11371: Unable to put non-MULTIPART_CONTENT data in method 
django.test.Client.put()
----------------------------------------+-----------------------------------
          Reporter:  vorushin           |         Owner:  nobody
            Status:  new                |     Milestone:        
         Component:  Testing framework  |       Version:  SVN   
        Resolution:                     |      Keywords:        
             Stage:  Unreviewed         |     Has_patch:  0     
        Needs_docs:  0                  |   Needs_tests:  0     
Needs_better_patch:  0                  |  
----------------------------------------+-----------------------------------
Comment (by anonymous):

 The same issue here,

 {{{
 In [57]: d = dumps({'bug':'confirmed'})

 In [58]: response = client.put(path = '/account/1.0/instance', data = d,
 content_type='application/json', follow=True)
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)

 /home/bluszcz/projects/branches/www.moovida.org/<ipython console> in
 <module>()

 /usr/local/lib/python2.6/dist-packages/django/test/client.pyc in put(self,
 path, data, content_type, follow, **extra)
     368             'CONTENT_TYPE':   content_type,
     369             'PATH_INFO':      urllib.unquote(parsed[2]),
 --> 370             'QUERY_STRING':   urlencode(data, doseq=True) or
 parsed[4],
     371             'REQUEST_METHOD': 'PUT',
     372             'wsgi.input':     FakePayload(post_data),

 /usr/local/lib/python2.6/dist-packages/django/utils/http.pyc in
 urlencode(query, doseq)
      40         [(smart_str(k),
      41          isinstance(v, (list,tuple)) and [smart_str(i) for i in v]
 or smart_str(v))
 ---> 42             for k, v in query],
      43         doseq)
      44

 ValueError: need more than 1 value to unpack

 In [59]:

 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11371#comment:2>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to