Django

Code

Ticket #10184: querydict_test.patch

File querydict_test.patch, 0.6 kB (added by Andre LeBlanc <andrepleblanc@gmail.com>, 1 year ago)

QueryDict? test

  • tests/regressiontests/httpwrappers/tests.py

    old new  
    401401>>> q == q1 
    402402True 
    403403 
     404##################################### 
     405# Pickling a multi-valued QueryDict # 
     406##################################### 
     407>>> import pickle 
     408>>> q = QueryDict('a=b&c=d&a=1') 
     409>>> q1 = pickle.loads(pickle.dumps(q, 2)) 
     410>>> q == q1 
     411True 
     412 
    404413###################################### 
    405414# HttpResponse with Unicode headers  # 
    406415######################################