def setUp(self):
    super(WipeoutServiceDeleteTopicModelsTests, 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)
    user_services.update_user_role(self.user_1_id, feconf.ROLE_ID_ADMIN)
    user_services.update_user_role(self.user_2_id, feconf.ROLE_ID_TOPIC_MANAGER)
    self.user_1_actions = user_services.UserActionsInfo(self.user_1_id)
    self.user_2_actions = user_services.UserActionsInfo(self.user_2_id)
    self.save_new_topic(self.TOP_1_ID, self.user_1_id)
    topic_services.assign_role(self.user_1_actions, self.user_1_actions, topic_domain.ROLE_MANAGER, self.TOP_1_ID)
    topic_services.assign_role(self.user_1_actions, self.user_2_actions, topic_domain.ROLE_MANAGER, self.TOP_1_ID)
def setUp(self):
    super(WipeoutServiceDeleteTopicModelsTests, 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)
    user_services.update_user_role(self.user_1_id, feconf.ROLE_ID_ADMIN)
    user_services.update_user_role(self.user_2_id, feconf.ROLE_ID_TOPIC_MANAGER)
    self.user_1_actions = user_services.UserActionsInfo(self.user_1_id)
    self.user_2_actions = user_services.UserActionsInfo(self.user_2_id)
    self.save_new_topic(self.TOP_1_ID, self.user_1_id)
    topic_services.assign_role(self.user_1_actions, self.user_1_actions, topic_domain.ROLE_MANAGER, self.TOP_1_ID)
    topic_services.assign_role(self.user_1_actions, self.user_2_actions, topic_domain.ROLE_MANAGER, self.TOP_1_ID)