def setUp(self):
    super(WipeoutServiceDeleteQuestionModelsTests, self).setUp()
    self.signup(self.USER_1_EMAIL, self.USER_1_USERNAME)
    self.signup(self.USER_2_EMAIL, self.USER_2_USERNAME)
    self.set_admins((self.USER_1_USERNAME, self.USER_2_USERNAME))
    self.user_1_id = self.get_user_id_from_email(self.USER_1_EMAIL)
    self.user_2_id = self.get_user_id_from_email(self.USER_2_EMAIL)
    self.save_new_skill(self.SKILL_1_ID, self.user_1_id)
    self.save_new_question(self.QUESTION_1_ID, self.user_1_id, self._create_valid_question_data('ABC'), [self.SKILL_1_ID])
    wipeout_service.pre_delete_user(self.user_1_id)
    wipeout_service.pre_delete_user(self.user_2_id)
    self.process_and_flush_pending_tasks()
def setUp(self):
    super(WipeoutServiceDeleteQuestionModelsTests, self).setUp()
    self.signup(self.USER_1_EMAIL, self.USER_1_USERNAME)
    self.signup(self.USER_2_EMAIL, self.USER_2_USERNAME)
    self.set_admins((self.USER_1_USERNAME, self.USER_2_USERNAME))
    self.user_1_id = self.get_user_id_from_email(self.USER_1_EMAIL)
    self.user_2_id = self.get_user_id_from_email(self.USER_2_EMAIL)
    self.save_new_skill(self.SKILL_1_ID, self.user_1_id)
    self.save_new_question(self.QUESTION_1_ID, self.user_1_id, self._create_valid_question_data('ABC'), [self.SKILL_1_ID])
    wipeout_service.pre_delete_user(self.user_1_id)
    wipeout_service.pre_delete_user(self.user_2_id)
    self.process_and_flush_pending_tasks()