def test_expired_user_deletion(self):
     """
     Test that
     ``RegistrationProfile.objects.delete_expired_users()`` deletes
     only inactive users whose activation window has expired.
     
     """
     RegistrationProfile.delete_expired_users()
     self.assertEqual(RegistrationProfile.objects.count(), 1)
Beispiel #2
0
 def test_expired_user_deletion(self):
     """
     Test that
     ``RegistrationProfile.objects.delete_expired_users()`` deletes
     only inactive users whose activation window has expired.
     
     """
     RegistrationProfile.delete_expired_users()
     self.assertEqual(RegistrationProfile.objects.count(), 1)
Beispiel #3
0
 def handle_noargs(self, **options):
     RegistrationProfile.delete_expired_users()