def test_login_user_id_invalid(self):
        self.client.login(username='authorized', password='pass')
        response = self.client.post('/su/abc/')
        self.assertEqual(response.status_code, 404)
        # User should still be logged in, but as the original user
        self.assertIn(auth.SESSION_KEY, self.client.session)
        self.assertEqual(str(self.client.session[auth.SESSION_KEY]), str(self.authorized_user.id))
        # Exit user should never get set
        self.assertNotIn('exit_users_pk', self.client.session)
A decorator to bind table region method to a anchor in a column.
dataset/ETHPy150Open adamcharnock/django-su/django_su/tests/test_views.py/LoginAsUserViewTestCase.test_login_user_id_invalid--crossover with--dataset/ETHPy150Open openstack/horizon/openstack_dashboard/test/integration_tests/regions/tables.py/bind_row_anchor_column