#6507: [proposal] Create extension to Python Cookie module
------------------------------------+---------------------------------------
          Reporter:  dcramer        |         Owner:  nobody
            Status:  new            |     Milestone:        
         Component:  HTTP handling  |       Version:  SVN   
        Resolution:                 |      Keywords:        
             Stage:  Someday/Maybe  |     Has_patch:  1     
        Needs_docs:  0              |   Needs_tests:  1     
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Changes (by qingfeng):

  * needs_tests:  0 => 1

Comment:

 Unit Test:
 {{{
 from django.test import TestCase
 from django import http

 class SimpleTest(TestCase):
     def test_basic_addition(self):
         cookie_str = 'name=qingfeng;???=456;'#Error Cookie!
         cookie = http.parse_cookie(cookie_str)
         self.assertTrue('name' in cookie)
         self.assertEqual(cookie['name'],'qingfeng')
 }}}

 Error Log:
 {{{
 F
 ======================================================================
 FAIL: test_basic_addition (fixbug.tests.SimpleTest)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/private/tmp/cookierror/fixbug/tests.py", line 16, in
 test_basic_addition
     self.assertTrue('name' in cookie)
 AssertionError

 ----------------------------------------------------------------------
 Ran 1 test in 0.003s

 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6507#comment:5>
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