def test_pre_delete_user_exploration_is_marked_deleted(self):
    self.save_new_valid_exploration('exp_id', self.user_1_id)
    exp_model = exp_models.ExplorationModel.get_by_id('exp_id')
    self.assertFalse(exp_model.deleted)
    wipeout_service.pre_delete_user(self.user_1_id)
    self.process_and_flush_pending_tasks()
    self.assertIsNone(exp_models.ExplorationModel.get_by_id('exp_id'))
def test_pre_delete_user_exploration_is_marked_deleted(self):
    self.save_new_valid_exploration('exp_id', self.user_1_id)
    exp_model = exp_models.ExplorationModel.get_by_id('exp_id')
    self.assertFalse(exp_model.deleted)
    wipeout_service.pre_delete_user(self.user_1_id)
    self.process_and_flush_pending_tasks()
    self.assertIsNone(exp_models.ExplorationModel.get_by_id('exp_id'))