def METHOD_NAME(self):
    comp_ui_state = comp_ui.State()
    prompt_state = comp_ui.PromptState()
    debug_f = util.DebugFile(sys.stdout)
    signal_safe = pyos.InitSignalSafe()
    # terminal width
    d1 = comp_ui.NiceDisplay(80, comp_ui_state, prompt_state, debug_f,
                             line_input, signal_safe)
    d2 = comp_ui.MinimalDisplay(comp_ui_state, prompt_state, debug_f)
    prompt_state.SetLastPrompt('$ ')
    for disp in [d1, d2]:
        # This one is important
        disp.EraseLines()
        disp.Reset()
        # These are related but we can just set them separately.
        comp_ui_state.line_until_tab = 'echo '  # for returning to the prompt
        comp_ui_state.display_pos = 5  # Strip this off every candidate
        disp.PrintRequired('hello')
        disp.PrintOptional('hello')
        matches = ['echo one', 'echo two']
        disp.PrintCandidates(None, matches, None)
        # This needs to be aware of the terminal width.
        # It's a bit odd since it's called as a side effect of the PromptEvaluator.
        # That class knows about styles and so forth.
        disp.ShowPromptOnRight('RIGHT')