def test_edit_topic_logged_required(self):
        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) # redirect to login
        self.assertTrue(res['location'].startswith('%s%s'  %
                                       ('http://testserver', settings.LOGIN_URL)))
dataset/ETHPy150Open ofri/Open-Knesset/committees/tests.py/TopicsTest.test_edit_topic_logged_required/original