

def testListView(self):
    res = self.client.get(reverse('topic-list'))
    self.assertEqual(res.status_code, 200)
    res.assertTemplateUsed(res, 'committees/topic_list.html')
    self.assertQuerysetEqual(res.context['topics'].order_by('pk'), ['<Topic: hello>', '<Topic: bye>'])

dataset/ETHPy150Open ofri/Open-Knesset/committees/tests.py TopicsTest.testListView/VarMisuse@35/44 `self`->`res`