def test_delete_user_is_successful(self):
    wipeout_service.pre_delete_user(self.user_1_id)
    self.process_and_flush_pending_tasks()
    self.assertIsNotNone(improvements_models.TaskEntryModel.get_by_id(self.improvements_model_1_id))
    self.assertIsNotNone(improvements_models.TaskEntryModel.get_by_id(self.improvements_model_2_id))
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    self.assertIsNone(improvements_models.TaskEntryModel.get_by_id(self.improvements_model_1_id))
    self.assertIsNone(improvements_models.TaskEntryModel.get_by_id(self.improvements_model_2_id))
def test_delete_user_is_successful(self):
    wipeout_service.pre_delete_user(self.user_1_id)
    self.process_and_flush_pending_tasks()
    self.assertIsNotNone(improvements_models.TaskEntryModel.get_by_id(self.improvements_model_1_id))
    self.assertIsNotNone(improvements_models.TaskEntryModel.get_by_id(self.improvements_model_2_id))
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    self.assertIsNone(improvements_models.TaskEntryModel.get_by_id(self.improvements_model_1_id))
    self.assertIsNone(improvements_models.TaskEntryModel.get_by_id(self.improvements_model_2_id))