def test_run_user_deletion_completion_with_user_properly_deleted(self):
    wipeout_service.run_user_deletion(self.pending_deletion_request)
    self.assertEqual(wipeout_service.run_user_deletion_completion(self.pending_deletion_request), wipeout_domain.USER_VERIFICATION_SUCCESS)
    self.assertIsNotNone(user_models.DeletedUserModel.get_by_id(self.user_1_id))
    self.assertTrue(user_services.is_username_taken(self.USER_1_USERNAME))
    self.assertIsNone(user_models.UserSettingsModel.get_by_id(self.user_1_id))
    self.assertIsNone(user_models.PendingDeletionRequestModel.get_by_id(self.user_1_id))
    self.assertIsNone(auth_services.get_auth_id_from_user_id(self.user_1_id))
    self.assertTrue(auth_services.verify_external_auth_associations_are_deleted(self.user_1_id))
def test_run_user_deletion_completion_with_user_properly_deleted(self):
    wipeout_service.run_user_deletion(self.pending_deletion_request)
    self.assertEqual(wipeout_service.run_user_deletion_completion(self.pending_deletion_request), wipeout_domain.USER_VERIFICATION_SUCCESS)
    self.assertIsNotNone(user_models.DeletedUserModel.get_by_id(self.user_1_id))
    self.assertTrue(user_services.is_username_taken(self.USER_1_USERNAME))
    self.assertIsNone(user_models.UserSettingsModel.get_by_id(self.user_1_id))
    self.assertIsNone(user_models.PendingDeletionRequestModel.get_by_id(self.user_1_id))
    self.assertIsNone(auth_services.get_auth_id_from_user_id(self.user_1_id))
    self.assertTrue(auth_services.verify_external_auth_associations_are_deleted(self.user_1_id))