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 import Client c = Client() response = c.post('/account/register/', {u'username': [u'john'], u'email': [u'j...@beatles.com'], u'bnewaccount': [u'Signup']},) self.assertEqual(response.status_code, 302) user = User.objects.get( username ='john') self.assertTrue(user.get_profile()) I'm using django_authopenid and I want to make sure a UserProfile is created after the User is created. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.