1. Jesaja Everling
  2. django-registration_appenginepatch

Commits

Waldemar Kornewald  committed 14cb560

Activate alice before trying to register a new user with that username.

  • Participants
  • Parent commits 6a16497
  • Branches default

Comments (0)

Files changed (1)

File registration/tests.py

View file
         
         """
         # Invalid data fails.
+        alice = User.all().filter('username =', 'alice').get()
+        alice.is_active = True
+        alice.put()
         response = self.client.post(reverse('registration_register'),
                                     data={ 'username': 'alice', # Will fail on username uniqueness.
                                            'email': 'foo@example.com',