Commits

Anonymous committed 14cb560

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

Comments (0)

Files changed (1)

registration/tests.py

         
         """
         # 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',