Commits

James Bennett committed 2c1be37

Test the context variable in the activation view when successful

  • Participants
  • Parent commits 8eb5c09

Comments (0)

Files changed (1)

File registration/tests.py

                                            kwargs={ 'activation_key': profile.activation_key }))
         self.assertEqual(response.status_code, 200)
         self.assertTemplateUsed(response, 'registration/activate.html')
+        self.failUnless(isinstance(response.context['account'], User))
 
         self.failUnless(User.objects.get(username='alice').is_active)