#13615: test.TestCase.assert(Not)Contains assumes response content is a page. -------------------------------+-------------------------------------------- Reporter: DaNmarner | Owner: nobody Status: new | Milestone: Component: Testing framework | Version: SVN Keywords: | Stage: Unreviewed Has_patch: 1 | -------------------------------+-------------------------------------------- Currently, if a test fails on django.TestCase.assertContains/assertNotContains(), Django says "Couldn't retrieve page: Response code was %d", which is an odd message if someone expects the response content is not a web page.
It took me about 2 minutes to comprehend this message the first time when I was working on a webapp that speaks JSON. The message should use the word "content" instead of "page", it does make a difference. -- Ticket URL: <http://code.djangoproject.com/ticket/13615> 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.
