Commits

Anonymous committed 39c9d1a

Fixed tests.

Comments (0)

Files changed (1)

registration/tests.py

 from django.core import management
 from django.core.urlresolvers import reverse
 from django.test import TestCase
+from google.appengine.ext import db
 
 from registration import forms
 from registration.models import RegistrationProfile
                                                          password='foo',
                                                          email='nobody@example.com',
                                                          send_email=False)
-        RegistrationProfile.objects.activate_user(RegistrationProfile.objects.get(user__username='signal_test').activation_key)
+        RegistrationProfile.objects.activate_user(RegistrationProfile.all().filter('user =', db.Key.from_path(User.kind(), 'key_signal_test')).get().activation_key)
 
         self.assertEqual(received_signals, expected_signals)