def test_index_view_with_no_polls(self):
        response = self.client.get(reverse('polls:index'))
        self.assertEqual(response.status_code, 200)
        self.assertContains(response, "No polls are available.")
        self.assertQuerysetEqual(response.context['latest_poll_list'], [])
If no polls exist, an appropriate message should be displayed.
dataset/ETHPy150Open disqus/sharding-example/polls/tests.py/PollViewTests.test_index_view_with_no_polls