'``RegistrationProfile.objects.delete_expired_users()`` only
deletes inactive users whose activation window has expired.'

def test_expired_user_deletion(self):

    self.registration_profile.objects.create_inactive_user(site=Site.objects.get_current(), **self.user_info)
    expired_user = self.registration_profile.objects.create_inactive_user(site=Site.objects.get_current(), username='bob', password='secret', email='bob@example.com')
    expired_user.date_joined -= datetime.timedelta(days=(settings.ACCOUNT_ACTIVATION_DAYS + 1))
    expired_user.save()
    self.registration_profile.objects.delete_expired_users()
    self.assertEqual(self.registration_profile.objects.count(), 1)
    self.assertRaises(UserModel().DoesNotExist, UserModel().objects.get, username='bob')
