def METHOD_NAME(self):
    issue = Issue.objects.create(title="Title 1", status="active")
    Issue.objects.create(title="Title 2", status="active")
    request = self.factory.get(self.url)
    response = IndexView.as_view()(request)
    self.assertEqual(response.status_code, 200)
    self.assertEqual(response.context_data["issue"], issue)