def test_detail_view_with_a_past_poll(self):
        past_poll = create_poll(question='Past Poll.', days=-5)
        response = self.client.get(reverse('polls:detail', args=(past_poll.id,)))
        self.assertContains(response, past_poll.question, status_code=200)
The detail view of a poll with a pub_date in the past should display
dataset/ETHPy150Open disqus/sharding-example/polls/tests.py/PollIndexDetailTests.test_detail_view_with_a_past_poll