

def testLoginRequired(self):
    res = self.client.post(reverse('committee-meeting', kwargs={
        'pk': res.meeting_1.id,
    }))
    self.assertFalse((self.bill_1 in self.meeting_1.bills_first.all()))
    self.assertEqual(res.status_code, 302)
    self.assertTrue(res['location'].startswith(('%s%s' % ('http://testserver', settings.LOGIN_URL))))

dataset/ETHPy150Open ofri/Open-Knesset/committees/tests.py CommitteeMeetingDetailViewTest.testLoginRequired/VarMisuse@28/39 `self`->`res`