def test_delete_user_with_multiple_users_is_successful(self):
    wipeout_service.pre_delete_user(self.user_2_id)
    self.process_and_flush_pending_tasks()
    self.assertIsNotNone(user_models.UserEmailPreferencesModel.get_by_id(self.user_2_id))
    self.assertIsNotNone(user_models.CompletedActivitiesModel.get_by_id(self.user_2_id))
    self.assertIsNotNone(user_models.IncompleteActivitiesModel.get_by_id(self.user_2_id))
    self.assertIsNotNone(user_models.LearnerPlaylistModel.get_by_id(self.user_2_id))
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_2_id))
    self.assertIsNone(user_models.UserEmailPreferencesModel.get_by_id(self.user_2_id))
    self.assertIsNone(user_models.CompletedActivitiesModel.get_by_id(self.user_2_id))
    self.assertIsNone(user_models.IncompleteActivitiesModel.get_by_id(self.user_2_id))
    self.assertIsNone(user_models.LearnerPlaylistModel.get_by_id(self.user_2_id))
def test_delete_user_with_multiple_users_is_successful(self):
    wipeout_service.pre_delete_user(self.user_2_id)
    self.process_and_flush_pending_tasks()
    self.assertIsNotNone(user_models.UserEmailPreferencesModel.get_by_id(self.user_2_id))
    self.assertIsNotNone(user_models.CompletedActivitiesModel.get_by_id(self.user_2_id))
    self.assertIsNotNone(user_models.IncompleteActivitiesModel.get_by_id(self.user_2_id))
    self.assertIsNotNone(user_models.LearnerPlaylistModel.get_by_id(self.user_2_id))
    wipeout_service.delete_user(wipeout_service.get_pending_deletion_request(self.user_2_id))
    self.assertIsNone(user_models.UserEmailPreferencesModel.get_by_id(self.user_2_id))
    self.assertIsNone(user_models.CompletedActivitiesModel.get_by_id(self.user_2_id))
    self.assertIsNone(user_models.IncompleteActivitiesModel.get_by_id(self.user_2_id))
    self.assertIsNone(user_models.LearnerPlaylistModel.get_by_id(self.user_2_id))