def test_verification_when_deletion_failed_is_unsuccessful(self):
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_2_id))
    self.assertTrue(wipeout_service.verify_user_deleted(self.user_2_id))
    skill_services.update_skill(self.user_2_id, self.SKILL_2_ID, [skill_domain.SkillChange({'cmd': skill_domain.CMD_UPDATE_SKILL_PROPERTY, 'property_name': skill_domain.SKILL_PROPERTY_LANGUAGE_CODE, 'new_value': 'cs', 'old_value': 'en'})], 'Change language.')
    self.assertFalse(wipeout_service.verify_user_deleted(self.user_2_id))
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_2_id))
    self.assertTrue(wipeout_service.verify_user_deleted(self.user_2_id))
def test_verification_when_deletion_failed_is_unsuccessful(self):
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_2_id))
    self.assertTrue(wipeout_service.verify_user_deleted(self.user_2_id))
    skill_services.update_skill(self.user_2_id, self.SKILL_2_ID, [skill_domain.SkillChange({'cmd': skill_domain.CMD_UPDATE_SKILL_PROPERTY, 'property_name': skill_domain.SKILL_PROPERTY_LANGUAGE_CODE, 'new_value': 'cs', 'old_value': 'en'})], 'Change language.')
    self.assertFalse(wipeout_service.verify_user_deleted(self.user_2_id))
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_2_id))
    self.assertTrue(wipeout_service.verify_user_deleted(self.user_2_id))