def setUp(self):
    super(WipeoutServiceVerifyDeleteStoryModelsTests, self).setUp()
    self.signup(self.USER_1_EMAIL, self.USER_1_USERNAME)
    self.signup(self.USER_2_EMAIL, 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_topic(self.TOPIC_1_ID, self.user_1_id, abbreviated_name='abbrev-four', url_fragment='frag-four')
    self.save_new_story(self.STORY_1_ID, self.user_1_id, self.TOPIC_1_ID)
    self.save_new_topic(self.TOPIC_2_ID, self.user_2_id, name='Topic 2', abbreviated_name='abbrev-five', url_fragment='frag-five', canonical_story_ids=[self.STORY_2_ID])
    self.save_new_story(self.STORY_2_ID, self.user_2_id, self.TOPIC_2_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(WipeoutServiceVerifyDeleteStoryModelsTests, self).setUp()
    self.signup(self.USER_1_EMAIL, self.USER_1_USERNAME)
    self.signup(self.USER_2_EMAIL, 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_topic(self.TOPIC_1_ID, self.user_1_id, abbreviated_name='abbrev-four', url_fragment='frag-four')
    self.save_new_story(self.STORY_1_ID, self.user_1_id, self.TOPIC_1_ID)
    self.save_new_topic(self.TOPIC_2_ID, self.user_2_id, name='Topic 2', abbreviated_name='abbrev-five', url_fragment='frag-five', canonical_story_ids=[self.STORY_2_ID])
    self.save_new_story(self.STORY_2_ID, self.user_2_id, self.TOPIC_2_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()