

def test_add_tag(self):
    self.assertTrue(self.client.login(username='jacob', password='JKM'))
    url = reverse('add-tag-to-object', kwargs={
        'app': APP,
        'object_type': 'committeemeeting',
        'object_id': self.meeting_1.id,
    })
    res = self.client.post(url, {
        'tag_id': self.tag_1.id,
    })
    self.assertEqual(res.status_code, 200)
    self.assertIn(self.tag_1, self.meeting_1.tags)

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