Revision c1f65a1e snf-astakos-app/astakos/im/tests/auth.py

b/snf-astakos-app/astakos/im/tests/auth.py
755 755

  
756 756
        # new academic user
757 757
        self.assertFalse(academic_users.filter(email='newuser@synnefo.org'))
758
        cl_newuser.set_tokens(eppn="newusereppn")
758
        cl_newuser.set_tokens(eppn="newusereppn", mail="newuser@synnefo.org",
759
                              surname="Lastname")
759 760
        r = cl_newuser.get(ui_url('login/shibboleth?'), follow=True)
761
        initial = r.context['signup_form'].initial
760 762
        pending = Pending.objects.get()
763
        self.assertEqual(initial.get('last_name'), 'Lastname')
764
        self.assertEqual(initial.get('email'), 'newuser@synnefo.org')
761 765
        identifier = pending.third_party_identifier
762 766
        signup_data = {'third_party_identifier': identifier,
763 767
                       'first_name': 'Academic',

Also available in: Unified diff