def setUp(self):
    super(WipeoutServiceRunFunctionsTests, self).setUp()
    date_10_days_ago = (datetime.datetime.utcnow() - datetime.timedelta(days=10))
    with self.mock_datetime_utcnow(date_10_days_ago):
        self.signup(self.USER_1_EMAIL, self.USER_1_USERNAME)
    self.user_1_id = self.get_user_id_from_email(self.USER_1_EMAIL)
    self.set_user_role(self.USER_1_USERNAME, feconf.ROLE_ID_TOPIC_MANAGER)
    self.user_1_actions = user_services.UserActionsInfo(self.user_1_id)
    wipeout_service.pre_delete_user(self.user_1_id)
    self.process_and_flush_pending_tasks()
    self.pending_deletion_request = wipeout_service.get_pending_deletion_request(self.user_1_id)
def setUp(self):
    super(WipeoutServiceRunFunctionsTests, self).setUp()
    date_10_days_ago = (datetime.datetime.utcnow() - datetime.timedelta(days=10))
    with self.mock_datetime_utcnow(date_10_days_ago):
        self.signup(self.USER_1_EMAIL, self.USER_1_USERNAME)
    self.user_1_id = self.get_user_id_from_email(self.USER_1_EMAIL)
    self.set_user_role(self.USER_1_USERNAME, feconf.ROLE_ID_TOPIC_MANAGER)
    self.user_1_actions = user_services.UserActionsInfo(self.user_1_id)
    wipeout_service.pre_delete_user(self.user_1_id)
    self.process_and_flush_pending_tasks()
    self.pending_deletion_request = wipeout_service.get_pending_deletion_request(self.user_1_id)