#3396: test_client unittest fails under python 2.3
----------------------------------------------+-----------------------------
Reporter:  Robert Myers <[EMAIL PROTECTED]>  |       Owner:  jacob        
  Status:  new                                |   Component:  Uncategorized
 Version:  SVN                                |    Keywords:               
   Stage:  Unreviewed                         |   Has_patch:  0            
----------------------------------------------+-----------------------------
 Running the Unittests for Django the following errors occur.
 
 {{{
 $python runtests.py --settings=testdj.settings
 ======================================================================
 ERROR: Request a page that is protected with @login, but use bad
 credentials
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/var/www/local/django/tests/modeltests/test_client/models.py",
 line 101, in test_view_with_bad_login
     self.assertFalse(response)
 AttributeError: 'ClientTest' object has no attribute 'assertFalse'
 
 ======================================================================
 ERROR: Request a page that is protected with @login_required
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/var/www/local/django/tests/modeltests/test_client/models.py",
 line 92, in test_view_with_login
     self.assertTrue(response)
 AttributeError: 'ClientTest' object has no attribute 'assertTrue'
 
 ======================================================================
 FAIL: POST an empty dictionary to a view
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/var/www/local/django/tests/modeltests/test_client/models.py",
 line 53, in test_empty_post
     self.assertEqual(response.status_code, 200)
   File "/usr/lib/python2.3/unittest.py", line 302, in failUnlessEqual
     raise self.failureException, \
 AssertionError: 500 != 200
 
 ----------------------------------------------------------------------
 Ran 68 tests in 6.298s
 
 FAILED (failures=1, errors=2)
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/3396>
Django Code <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