def test_verify_user_delete_when_user_is_not_deleted_returns_false(self):
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    self.assertTrue(wipeout_service.verify_user_deleted(self.user_1_id))
    improvements_models.TaskEntryModel.create(entity_type=constants.TASK_ENTITY_TYPE_EXPLORATION, entity_id=self.EXP_3_ID, entity_version=1, task_type=constants.TASK_TYPE_HIGH_BOUNCE_RATE, target_type=constants.TASK_TARGET_TYPE_STATE, target_id='State', issue_description=None, status=constants.TASK_STATUS_RESOLVED, resolver_id=self.user_1_id)
    self.assertFalse(wipeout_service.verify_user_deleted(self.user_1_id))
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    self.assertTrue(wipeout_service.verify_user_deleted(self.user_1_id))
def test_verify_user_delete_when_user_is_not_deleted_returns_false(self):
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    self.assertTrue(wipeout_service.verify_user_deleted(self.user_1_id))
    improvements_models.TaskEntryModel.create(entity_type=constants.TASK_ENTITY_TYPE_EXPLORATION, entity_id=self.EXP_3_ID, entity_version=1, task_type=constants.TASK_TYPE_HIGH_BOUNCE_RATE, target_type=constants.TASK_TARGET_TYPE_STATE, target_id='State', issue_description=None, status=constants.TASK_STATUS_RESOLVED, resolver_id=self.user_1_id)
    self.assertFalse(wipeout_service.verify_user_deleted(self.user_1_id))
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_1_id))
    self.assertTrue(wipeout_service.verify_user_deleted(self.user_1_id))