

def testConnectToMK(self):
    self.assertTrue(self.client.login(username='jacob', password='JKM'))
    res = self.client.post(reverse('committee-meeting', kwargs={
        'pk': self.meeting_1.id,
    }), {
        'user_input_type': 'mk',
        'mk_name': self.mk_1.name,
    })
    self.assertEqual(res.status_code, 302)
    self.assertTrue((self.meeting_1 in self.mk_1.committee_meetings.all()))
    self.client.logout()

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