def test_pre_delete_profile_users_works_correctly(self):
    user_settings = user_services.get_user_settings(self.profile_user_id)
    self.assertFalse(user_settings.deleted)
    self.assertFalse(user_settings.deleted)
    wipeout_service.pre_delete_user(self.profile_user_id)
    self.process_and_flush_pending_tasks()
    user_settings = user_models.UserSettingsModel.get_by_id(self.profile_user_id)
    self.assertTrue(user_settings.deleted)
    user_auth_details = auth_models.UserAuthDetailsModel.get_by_id(self.profile_user_id)
    self.assertTrue(user_auth_details.deleted)
def test_pre_delete_profile_users_works_correctly(self):
    user_settings = user_services.get_user_settings(self.profile_user_id)
    self.assertFalse(user_settings.deleted)
    self.assertFalse(user_settings.deleted)
    wipeout_service.pre_delete_user(self.profile_user_id)
    self.process_and_flush_pending_tasks()
    user_settings = user_models.UserSettingsModel.get_by_id(self.profile_user_id)
    self.assertTrue(user_settings.deleted)
    user_auth_details = auth_models.UserAuthDetailsModel.get_by_id(self.profile_user_id)
    self.assertTrue(user_auth_details.deleted)