def test_visual(displayer, choices):
 displayer.notification('Random notification!')
 displayer.menu('Question?', choices, ok_label='O', cancel_label='Can', help_label='??')
 displayer.menu('Question?', [choice[1] for choice in choices], ok_label='O', cancel_label='Can', help_label='??')
 displayer.input('Input Message')
 displayer.yesno('YesNo Message', yes_label='Yessir', no_label='Nosir')
 displayer.checklist('Checklist Message', [choice[0] for choice in choices])

def test_visual ( displayer , choices ) : displayer . notification ( 'Random notification!' ) displayer . menu ( 'Question?' , choices , ok_label = 'O' , cancel_label = 'Can' , help_label = '??' ) displayer . menu ( 'Question?' , [ choice [ 1 ] for choice in choices ] , ok_label = 'O' , cancel_label = 'Can' , help_label = '??' ) displayer . input ( 'Input Message' ) displayer . yesno ( 'YesNo Message' , yes_label = 'Yessir' , no_label = 'Nosir' ) displayer . checklist ( 'Checklist Message' , [ choice [ 0 ] for choice in choices ] )
visually test all of the display functions .