

def testCommitteeList(self):
    res = self.client.get(reverse('committee-list'))
    self.assertEqual(res.status_code, 200)
    self.assertTemplateUsed(res, 'committees/committee_list.html')
    committees = res.context['committees']
    self.assertEqual(map(just_id, committees), [self.committee_1.id, self.committee_2.id])
    self.assertQuerysetEqual(res.context['topics'], ['<Topic: hello>'])

dataset/ETHPy150Open ofri/Open-Knesset/committees/tests.py CommitteeMeetingDetailViewTest.testCommitteeList/original