def test_protected_url(self):
        
        self.client.login(username="test1", password="password")
        
        # Test create not allowed
        response = self.client.post(reverse("test_protected_url"))
        perm_url = reverse(
            "permissions_url",
            kwargs=dict(
                perm_name="can_call_protected_url",
                permittee_ct_id=ContentType.objects.get_for_model(User).id,
                permittee_id = self.u1.id,
                target_ct_id=ContentType.objects.get_for_model(ContentType).id,
                target_id=ContentType.objects.get_for_model(PermissionTestClass).id,
            )
        )
        self.assertRedirects(response, perm_url)
        self.assertEqual(
            self.client.session['from_url'], reverse("test_protected_url"))
Load the session from the store, by the id from cookie
dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient/common/permissions/tests/tests.py/TestRequests.test_protected_url--crossover with--dataset/ETHPy150Open wecatch/app-turbo/turbo/session.py/Session._load