def test_pre_delete_username_is_not_saved_for_user_younger_than_week(self):
    wipeout_service.pre_delete_user(self.user_1_id)
    self.process_and_flush_pending_tasks()
    pending_deletion_request = wipeout_service.get_pending_deletion_request(self.user_1_id)
    self.assertIsNone(pending_deletion_request.normalized_long_term_username)
def test_pre_delete_username_is_not_saved_for_user_younger_than_week(self):
    wipeout_service.pre_delete_user(self.user_1_id)
    self.process_and_flush_pending_tasks()
    pending_deletion_request = wipeout_service.get_pending_deletion_request(self.user_1_id)
    self.assertIsNone(pending_deletion_request.normalized_long_term_username)