def test_committeemeeting_by_tag(self):
        res = self.client.get('%s?tagged=false' % reverse('committee-all-meetings'))
        self.assertQuerysetEqual(res.context['object_list'],
                                 ['<CommitteeMeeting: c1 - python>',
                                  '<CommitteeMeeting: c1 - django>'],
                                 )
        self.ti = TaggedItem._default_manager.create(
            tag=self.tag_1,
            content_type=ContentType.objects.get_for_model(CommitteeMeeting),
            object_id=self.meeting_1.id)
        res = self.client.get(reverse('committeemeeting-tag', args=[self.tag_1.name]))
        self.assertEqual(res.status_code, 200)
        self.assertTemplateUsed(res, 'committees/committeemeeting_list_by_tag.html')
        tag = res.context['tag']
        self.assertEqual(tag, self.tag_1)
        self.assertQuerysetEqual(res.context['object_list'],
                                 ['<CommitteeMeeting: c1 - django>'])
        res = self.client.get('%s?tagged=false' % reverse('committee-all-meetings'))
        self.assertQuerysetEqual(res.context['object_list'],
                                 ['<CommitteeMeeting: c1 - python>'])
        # cleanup
        self.ti.delete()
dataset/ETHPy150Open ofri/Open-Knesset/committees/tests.py/CommitteeMeetingDetailViewTest.test_committeemeeting_by_tag/original