Mercurial > public > sg101
diff bio/tests/test_views.py @ 789:9e803323a0d0
Removing AUTH_PROFILE_MODULE and get_profile().
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Fri, 23 May 2014 15:10:11 -0500 |
parents | cd3343abca9d |
children |
line wrap: on
line diff
--- a/bio/tests/test_views.py Sun May 18 17:43:37 2014 -0500 +++ b/bio/tests/test_views.py Fri May 23 15:10:11 2014 -0500 @@ -197,7 +197,7 @@ self.assertEqual(u.first_name, 'Paul') self.assertEqual(u.last_name, 'Johnson') self.assertEqual(u.email, 'pjmoto@example.com') - profile = u.get_profile() + profile = u.profile self.assertEqual(profile.occupation, 'Surf Guitar Pioneer') self.assertEqual(profile.profile_text, 'Wrote Mr. Moto at age 15.') @@ -250,7 +250,7 @@ flag = UserProfileFlag.objects.first() self.assertEqual(flag.user, paul) - self.assertEqual(flag.profile, eddie.get_profile()) + self.assertEqual(flag.profile, eddie.profile) self.assertEqual(len(mail.outbox), 1) self.assertTrue('A Profile Has Been Flagged' in mail.outbox[0].subject)