diff antispam/tests/test_utils.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 8789299c75b1
children
line wrap: on
line diff
--- a/antispam/tests/test_utils.py	Sun May 18 17:43:37 2014 -0500
+++ b/antispam/tests/test_utils.py	Fri May 23 15:10:11 2014 -0500
@@ -56,7 +56,7 @@
         user = User.objects.create_user('spammer_guy', '', 'password')
         user.save()
 
-        profile = user.get_profile()
+        profile = user.profile
         profile.location = 'Spamville'
         profile.country = 'US'
         profile.birthday = datetime.date.today()
@@ -93,7 +93,7 @@
 
         deactivate_spammer(user)
 
-        profile = user.get_profile()
+        profile = user.profile
         self.assertFalse(profile.location)
         self.assertFalse(profile.country)
         self.assertIsNone(profile.birthday)