Hello, I use django 0.96 and Python 2.5
the following is one of the view functions. I set this function always raises an LoginRequiredException. ] def preferences(req): ] raise LoginRequiredException, "please, log in" and the test case. ] client = Client() ] self.assertRaises(LoginRequiredException, client.get, "/user/ preferences/") You may exception the test does not fail, but it fails. The following is an error message. ] File "/usr/lib/python2.5/site-packages/django/template/loader.py", line 72, in find_template_source ] raise TemplateDoesNotExist, name ] TemplateDoesNotExist: 500.html As you see, I view function raises an exception, the exception is always regarded as "TemplateDoesNotExist". So I have to change the test case to... ] client = Client() ] self.assertRaises(TemplateDoesNotExist, client.get, "/user/ preferences/") Is is a bug or my mistake?? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---

