Commits

James Bennett committed 5b0e120

And make sure it really is the right user

Comments (0)

Files changed (1)

registration/tests.py

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