

def testCommitteeMeetings(self):
    res = self.client.get(self.committee_1.get_absolute_url())
    self.assertEqual(res.status_code, 200)
    self.assertTemplateUsed(res, 'committees/committee_detail.html')
    object_list = res.context['meetings_list']
    self.assertEqual(map(just_id, object_list), [self.meeting_1.id, self.meeting_2.id], ('object_list has wrong objects: %s' % object_list))

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