I looked at how the Django test client class method, Client.login()
stored sessions and attempt to copy the important sections into the
test so the session data could be stored.
When I broke into the test immediately before Client.post() was called
and the session looked OK.
ipdb> request.session.
I'm trying to test that a UserProfile model is created as a new User
is registered in django_authopenid.
I don't understand how to add the Openid session data to the POST.
class UserTestCase(TestCase):
def test_register_should_create_UserProfile(self):
from django.test.client imp
2 matches
Mail list logo