Revision 8ab484ea snf-astakos-app/astakos/im/tests.py

b/snf-astakos-app/astakos/im/tests.py
171 171

  
172 172
        r = client.get('/im/shibboleth/signup/%s' % token)
173 173
        form = r.context['form']
174
        post_data = {'email': 'kpap@grnet.gr',
174
        post_data = {'email': 'kpap',
175 175
                     'third_party_identifier': pending_user.third_party_identifier,
176 176
                     'first_name': 'Kostas',
177 177
                     'third_party_token': token,
......
180 180
                     'provider': 'shibboleth'
181 181
                    }
182 182
        r = client.post('/im/signup', post_data)
183
        self.assertContains(r, token)
184
        post_data['email'] = 'kpap@grnet.gr'
185
        r = client.post('/im/signup', post_data)
183 186
        self.assertEqual(r.status_code, 200)
184 187
        self.assertEqual(AstakosUser.objects.count(), 1)
185 188
        self.assertEqual(PendingThirdPartyUser.objects.count(), 0)

Also available in: Unified diff