Commits

James Bennett  committed 8eb5c09

Test the context variable in the activation view

  • Participants
  • Parent commits e0a1b2c

Comments (0)

Files changed (1)

File registration/tests.py

         response = self.client.get(reverse('registration_activate',
                                            kwargs={ 'activation_key': expired_profile.activation_key }))
         self.assertEqual(response.status_code, 200)
+        self.failIf(response.context['account'])
         self.failIf(User.objects.get(username='bob').is_active)