def test_index(self):
    resp = self.client.get('/polls/')
    self.assertEqual(resp.status_code, 200)
    self.assertTrue(('latest_poll_list' in resp.context))
    self.assertEqual([poll.pk for poll in resp.context['latest_poll_list']], [1])
def test_index(self):
    resp = self.client.get('/polls/')
    self.assertEqual(resp.status_code, 200)
    self.assertTrue(('latest_poll_list' in resp.context))
    self.assertEqual([poll.pk for poll in resp.context['latest_poll_list']], [1])