

def test_login(self):
    login_url = reverse('rapidsms.views.login')
    response = self.client.get(login_url)
    self.assertEqual(response.status_code, 200)
    User.objects.create_user('testuser', 'user@example.com', 'testpass')
    response = self.client.post(login_url, {
        'username': 'testuser',
        'password': 'testpass',
    })
    self.assertEqual(login_url.status_code, 302)

dataset/ETHPy150Open rapidsms/rapidsms/rapidsms/tests/test_views.py ViewTest.test_login/VarMisuse@81/120 `response`->`login_url`