def test_index_view_with_a_future_poll(self):
        create_poll(question="Future poll.", days=30)
        response = self.client.get(reverse('polls:index'))
        self.assertContains(response, "No polls are available.", status_code=200)
        self.assertQuerysetEqual(response.context['latest_poll_list'], [])
Polls with a pub_date in the future should not be displayed on the
dataset/ETHPy150Open disqus/sharding-example/polls/tests.py/PollViewTests.test_index_view_with_a_future_poll