

def test_edit_topic(self):
    self.assertTrue(self.client.login(username='jacob', password='JKM'))
    res = self.client.post(reverse('edit-committee-topic', kwargs={
        'committee_id': self.committee_1.id,
        'topic_id': self.topic.id,
    }), {
        'title': 'test topic title',
        'description': 'test topic description',
        'committees': self.committee_1.id,
        'form-INITIAL_FORMS': 0,
        'form-MAX_NUM_FORMS': '',
        'form-TOTAL_FORMS': 3,
    })
    self.assertEqual(res.status_code, 302)
    t = Topic.objects.get(pk=t.topic.id)
    self.assertEqual(t.title, 'test topic title')
    self.assertEqual(t.description, 'test topic description')
    self.assertEqual(Topic.objects.count(), 2)

dataset/ETHPy150Open ofri/Open-Knesset/committees/tests.py TopicsTest.test_edit_topic/VarMisuse@127/198 `self`->`t`