﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19681	documentation bug: tutorial 5	upadhyay@…	nobody	"Under Testing our new view: https://docs.djangoproject.com/en/dev/intro/tutorial05/#testing-our-new-view, class PollViewTests, method test_index_view_with_a_past_poll is wrong. It is currently: 

{{{#!python
    def test_index_view_with_a_past_poll(self):
        """"""
        Polls with a pub_date in the past should be displayed on the index page.
        """"""
        create_poll(question=""Past poll."", days=-30)
        response = self.client.get(reverse('polls:index'))
        self.assertQuerysetEqual(
            response.context['latest_poll_list'],
            ['<Poll: Past poll.>']
        )
}}}

This is wrong, correct version:

{{{#!python
    def test_index_view_with_a_past_poll(self):
        """"""
        Polls with a pub_date in the past should be displayed on the index page.
        """"""
        past_poll = create_poll(question=""Past poll."", days=-30)
        response = self.client.get(reverse('polls:index'))
        self.assertQuerysetEqual(
            response.context['latest_poll_list'],
            [past_poll]
        )
}}}

There are a few other instances of this mistake in the subsequent tests.
"	Cleanup/optimization	closed	Documentation	dev	Normal	invalid			Unreviewed	0	0	0	0	1	0
