Module Expr Str Import alias Import alias Import alias Import alias identifier ImportFrom alias identifier Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str NameLoad Str Str NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore ListLoad TupleLoad SubscriptLoad NameLoad Index Num Str NameLoad TupleLoad SubscriptLoad NameLoad Index Num Str NameLoad TupleLoad SubscriptLoad NameLoad Index Num Str NameLoad Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num NameLoad Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Index Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword Str body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword Str body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str With Call AttributeLoad NameLoad attr Str keyword Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str With Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str With Call AttributeLoad NameLoad attr Str keyword Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str With Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str With Call AttributeLoad NameLoad attr Str keyword Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr TupleLoad AttributeLoad NameLoad attr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr Call NameLoad ListLoad Str Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr ListLoad Str decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr ListLoad TupleLoad AttributeLoad NameLoad attr Str TupleLoad AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr ListLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad ListLoad Str ListLoad Str Str Str ListLoad Str Str Assign NameStore ListLoad Call NameLoad ListLoad Str Call NameLoad ListLoad Str Str Call NameLoad ListLoad Str Str For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign NameStore TupleLoad AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad ListLoad Str ListLoad Str ListLoad Str ListLoad Str Str ListLoad Str Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str keyword Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad NameLoad attr Num Assign NameStore Str With Call AttributeLoad NameLoad attr Str keyword NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad ListLoad Str Str ListLoad Str Str Str ListLoad Str For NameStore NameLoad body With Call AttributeLoad NameLoad attr Str keyword NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num TupleLoad AttributeLoad NameLoad attr Num decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Index Num Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Str Str Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A Test :mod:`certbot.display.util`. N/A os N/A unittest N/A mock N/A certbot.errors errors certbot.display util display_util N/A CHOICES N/A N/A First Description1 N/A Second Description2 N/A TAGS N/A tag1 tag2 tag3 N/A TAGS_CHOICES N/A N/A 1 tag1 N/A 2 tag2 N/A 3 tag3 NcursesDisplayTest N/A N/A unittest TestCase N/A N/A Test ncurses display.

    Since this is mostly a wrapper, it might be more helpful to test the
    actual dialog boxes. The test file located in ./tests/display.py
    (relative to the root of the repository) will actually display the
    various boxes but requires the user to do the verification. If
    something seems amiss please use that test script to debug it, the
    automatic tests rely on too much mocking.

     setUp N/A N/A self N/A N/A N/A N/A N/A N/A super NcursesDisplayTest self setUp N/A N/A self displayer N/A N/A display_util NcursesDisplay N/A N/A self default_menu_options N/A choices ok_label cancel_label help_button help_label width height menu_height CHOICES OK Cancel False N/A display_util WIDTH N/A display_util HEIGHT N/A N/A display_util HEIGHT 6 N/A test_notification N/A N/A self mock_msgbox N/A N/A N/A Kind of worthless... one liner. N/A N/A N/A N/A self displayer notification message N/A N/A N/A self assertEqual N/A mock_msgbox call_count 1 N/A N/A N/A mock patch certbot.display.util.dialog.Dialog.msgbox test_menu_tag_and_desc N/A N/A self mock_menu N/A N/A N/A N/A mock_menu return_value N/A N/A display_util OK First N/A ret N/A N/A N/A self displayer menu Message CHOICES N/A N/A N/A mock_menu assert_called_with Message N/A self default_menu_options N/A N/A N/A self assertEqual ret N/A N/A display_util OK 0 N/A N/A N/A mock patch certbot.display.util.dialog.Dialog.menu test_menu_tag_and_desc_cancel N/A N/A self mock_menu N/A N/A N/A N/A mock_menu return_value N/A N/A display_util CANCEL N/A ret N/A N/A N/A self displayer menu Message CHOICES N/A N/A N/A mock_menu assert_called_with Message N/A self default_menu_options N/A N/A N/A self assertEqual ret N/A N/A display_util CANCEL -1 N/A N/A N/A mock patch certbot.display.util.dialog.Dialog.menu test_menu_desc_only N/A N/A self mock_menu N/A N/A N/A N/A mock_menu return_value N/A N/A display_util OK 1 N/A ret N/A N/A N/A self displayer menu Message TAGS help_label More Info N/A N/A N/A N/A self default_menu_options update choices TAGS_CHOICES help_button True help_label More Info N/A N/A N/A mock_menu assert_called_with Message N/A self default_menu_options N/A N/A N/A self assertEqual ret N/A N/A display_util OK 0 N/A N/A N/A mock patch certbot.display.util.dialog.Dialog.menu test_menu_desc_only_help N/A N/A self mock_menu N/A N/A N/A N/A mock_menu return_value N/A N/A display_util HELP 2 N/A ret N/A N/A N/A self displayer menu Message TAGS help_label More Info N/A N/A N/A self assertEqual ret N/A N/A display_util HELP 1 N/A N/A N/A mock patch certbot.display.util.dialog.Dialog.menu test_menu_desc_only_cancel N/A N/A self mock_menu N/A N/A N/A N/A mock_menu return_value N/A N/A display_util CANCEL N/A ret N/A N/A N/A self displayer menu Message TAGS help_label More Info N/A N/A N/A self assertEqual ret N/A N/A display_util CANCEL -1 N/A N/A N/A mock patch certbot.display.util.dialog.Dialog.menu test_input N/A N/A self mock_input N/A N/A N/A N/A N/A N/A self displayer input message N/A N/A N/A self assertEqual N/A mock_input call_count 1 N/A N/A N/A mock patch certbot.display.util.dialog.Dialog.inputbox test_yesno N/A N/A self mock_yesno N/A N/A N/A N/A mock_yesno return_value N/A display_util OK N/A N/A N/A self assertTrue N/A N/A N/A self displayer yesno message N/A N/A N/A mock_yesno assert_called_with message N/A display_util HEIGHT N/A display_util WIDTH yes_label Yes no_label No N/A N/A N/A mock patch certbot.display.util.dialog.Dialog.yesno test_checklist N/A N/A self mock_checklist N/A N/A N/A N/A N/A N/A self displayer checklist message TAGS N/A choices N/A N/A N/A TAGS N/A 0 True N/A N/A TAGS N/A 1 True N/A N/A TAGS N/A 2 True N/A N/A N/A mock_checklist assert_called_with message width N/A display_util WIDTH height N/A display_util HEIGHT choices choices N/A N/A N/A mock patch certbot.display.util.dialog.Dialog.checklist test_directory_select N/A N/A self mock_dselect N/A N/A N/A N/A N/A N/A self displayer directory_select message N/A N/A N/A self assertEqual N/A mock_dselect call_count 1 N/A N/A N/A mock patch certbot.display.util.dialog.Dialog.dselect N/A FileOutputDisplayTest N/A N/A unittest TestCase N/A N/A Test stdout display.

    Most of this class has to deal with visual output.  In order to test how the
    functions look to a user, uncomment the test_visual function.

     setUp N/A N/A self N/A N/A N/A N/A N/A N/A super FileOutputDisplayTest self setUp N/A N/A self mock_stdout N/A N/A mock MagicMock N/A N/A self displayer N/A N/A display_util FileDisplay N/A self mock_stdout N/A test_notification_no_pause N/A N/A self N/A N/A N/A N/A N/A N/A self displayer notification message 10 False N/A string N/A N/A N/A N/A N/A self mock_stdout write call_args N/A 0 N/A 0 N/A N/A N/A self assertTrue N/A message string N/A test_notification_pause N/A N/A self N/A N/A N/A N/A N/A mock patch __builtin__.raw_input return_value enter N/A N/A N/A N/A N/A self displayer notification message N/A N/A N/A self assertTrue N/A message N/A N/A N/A N/A N/A self mock_stdout write call_args N/A 0 N/A 0 N/A test_menu N/A N/A self mock_ans N/A N/A N/A N/A mock_ans return_value N/A N/A display_util OK 1 N/A ret N/A N/A N/A self displayer menu message CHOICES N/A N/A N/A self assertEqual ret N/A N/A display_util OK 0 N/A N/A N/A mock patch certbot.display.util.FileDisplay._get_valid_int_ans test_input_cancel N/A N/A self N/A N/A N/A N/A N/A mock patch __builtin__.raw_input return_value c N/A N/A N/A code _ N/A N/A N/A self displayer input message N/A N/A N/A self assertTrue code N/A display_util CANCEL N/A test_input_normal N/A N/A self N/A N/A N/A N/A N/A mock patch __builtin__.raw_input return_value domain.com N/A N/A N/A code input_ N/A N/A N/A self displayer input message N/A N/A N/A self assertEqual code N/A display_util OK N/A N/A N/A self assertEqual input_ domain.com N/A test_yesno N/A N/A self N/A N/A N/A N/A N/A mock patch __builtin__.raw_input return_value Yes N/A N/A N/A N/A self assertTrue N/A N/A N/A self displayer yesno message N/A N/A N/A mock patch __builtin__.raw_input return_value y N/A N/A N/A N/A self assertTrue N/A N/A N/A self displayer yesno message N/A N/A N/A mock patch __builtin__.raw_input side_effect N/A maybe y N/A N/A N/A N/A self assertTrue N/A N/A N/A self displayer yesno message N/A N/A N/A mock patch __builtin__.raw_input return_value No N/A N/A N/A N/A self assertFalse N/A N/A N/A self displayer yesno message N/A N/A N/A mock patch __builtin__.raw_input side_effect N/A cancel n N/A N/A N/A N/A self assertFalse N/A N/A N/A self displayer yesno message N/A N/A N/A mock patch __builtin__.raw_input return_value a N/A N/A N/A N/A self assertTrue N/A N/A N/A self displayer yesno msg yes_label Agree N/A test_checklist_valid N/A N/A self mock_input N/A N/A N/A N/A mock_input return_value N/A N/A display_util OK 2 1 N/A N/A code tag_list N/A N/A N/A self displayer checklist msg TAGS N/A N/A N/A self assertEqual N/A code N/A set tag_list N/A N/A display_util OK N/A set N/A tag1 tag2 N/A N/A N/A mock patch certbot.display.util.FileDisplay.input test_checklist_miss_valid N/A N/A self mock_input N/A N/A N/A N/A mock_input side_effect N/A N/A N/A display_util OK 10 N/A N/A display_util OK tag1 please N/A N/A display_util OK 1 N/A ret N/A N/A N/A self displayer checklist msg TAGS N/A N/A N/A self assertEqual ret N/A N/A display_util OK N/A tag1 N/A N/A N/A mock patch certbot.display.util.FileDisplay.input test_checklist_miss_quit N/A N/A self mock_input N/A N/A N/A N/A mock_input side_effect N/A N/A N/A display_util OK 10 N/A N/A display_util CANCEL 1 N/A ret N/A N/A N/A self displayer checklist msg TAGS N/A N/A N/A self assertEqual ret N/A N/A display_util CANCEL N/A N/A N/A N/A mock patch certbot.display.util.FileDisplay.input test_scrub_checklist_input_valid N/A N/A self N/A N/A N/A indices N/A N/A 1 N/A 1 2 1 N/A 2 3 N/A exp N/A N/A set N/A tag1 N/A set N/A tag1 tag2 N/A set N/A tag2 tag3 N/A N/A i list_ N/A enumerate indices N/A N/A set_tags N/A set N/A N/A N/A self displayer _scrub_checklist_input list_ TAGS N/A N/A N/A self assertEqual set_tags N/A exp N/A i N/A test_directory_select N/A N/A self mock_input N/A N/A N/A message msg N/A result N/A N/A display_util OK /var/www/html N/A N/A mock_input return_value result N/A N/A N/A self assertEqual N/A N/A N/A self displayer directory_select message result N/A N/A N/A mock_input assert_called_once_with message N/A N/A N/A mock patch certbot.display.util.FileDisplay.input test_scrub_checklist_input_invalid N/A N/A self N/A N/A N/A indices N/A N/A 0 N/A 4 N/A tag1 N/A 1 tag1 N/A 2 o N/A list_ indices N/A N/A N/A N/A self assertEqual N/A N/A N/A self displayer _scrub_checklist_input list_ TAGS N/A N/A test_print_menu N/A N/A self N/A N/A N/A N/A N/A N/A self displayer _print_menu msg CHOICES N/A N/A N/A N/A self displayer _print_menu msg TAGS N/A test_wrap_lines N/A N/A self N/A N/A N/A msg N/A N/A This is just a weak test{0}This function is only meant to be for easy viewing{0}Test a really really really really really really really really really really really really long line... format N/A os linesep N/A text N/A N/A display_util _wrap_lines msg N/A N/A N/A self assertEqual N/A N/A text count N/A os linesep 3 N/A test_get_valid_int_ans_valid N/A N/A self N/A N/A N/A N/A N/A mock patch __builtin__.raw_input return_value 1 N/A N/A N/A N/A self assertEqual N/A N/A N/A self displayer _get_valid_int_ans 1 N/A N/A display_util OK 1 N/A ans 2 N/A N/A N/A mock patch __builtin__.raw_input return_value ans N/A N/A N/A N/A self assertEqual N/A N/A N/A self displayer _get_valid_int_ans 3 N/A N/A display_util OK N/A int ans N/A test_get_valid_int_ans_invalid N/A N/A self N/A N/A N/A answers N/A N/A 0 c N/A 4 one C N/A c N/A ans answers N/A N/A N/A N/A mock patch __builtin__.raw_input side_effect ans N/A N/A N/A N/A self assertEqual N/A N/A N/A self displayer _get_valid_int_ans 3 N/A N/A display_util CANCEL -1 N/A N/A NoninteractiveDisplayTest N/A N/A unittest TestCase N/A N/A Test non-interactive display.

    These tests are pretty easy!

     setUp N/A N/A self N/A N/A N/A N/A N/A N/A super NoninteractiveDisplayTest self setUp N/A N/A self mock_stdout N/A N/A mock MagicMock N/A N/A self displayer N/A N/A display_util NoninteractiveDisplay N/A self mock_stdout N/A test_notification_no_pause N/A N/A self N/A N/A N/A N/A N/A N/A self displayer notification message 10 N/A string N/A N/A N/A N/A N/A self mock_stdout write call_args N/A 0 N/A 0 N/A N/A N/A self assertTrue N/A message string N/A test_input N/A N/A self N/A N/A N/A d an incomputable value N/A ret N/A N/A N/A self displayer input message default d N/A N/A N/A self assertEqual ret N/A N/A display_util OK d N/A N/A N/A self assertRaises N/A errors MissingCommandlineFlag N/A N/A self displayer input message N/A test_menu N/A N/A self N/A N/A N/A ret N/A N/A N/A self displayer menu message CHOICES default 1 N/A N/A N/A self assertEqual ret N/A N/A display_util OK 1 N/A N/A N/A self assertRaises N/A errors MissingCommandlineFlag N/A N/A self displayer menu message CHOICES N/A test_yesno N/A N/A self N/A N/A N/A d False N/A ret N/A N/A N/A self displayer yesno message default d N/A N/A N/A self assertEqual ret d N/A N/A N/A self assertRaises N/A errors MissingCommandlineFlag N/A N/A self displayer yesno message N/A test_checklist N/A N/A self N/A N/A N/A d N/A 1 3 N/A ret N/A N/A N/A self displayer checklist message TAGS default d N/A N/A N/A self assertEqual ret N/A N/A display_util OK d N/A N/A N/A self assertRaises N/A errors MissingCommandlineFlag N/A N/A self displayer checklist message TAGS N/A test_directory_select N/A N/A self N/A N/A N/A default /var/www/html N/A expected N/A N/A display_util OK default N/A actual N/A N/A N/A self displayer directory_select msg default N/A N/A N/A self assertEqual expected actual N/A N/A N/A self assertRaises N/A errors MissingCommandlineFlag N/A N/A self displayer directory_select msg N/A N/A SeparateListInputTest N/A N/A unittest TestCase N/A N/A Test Module functions. setUp N/A N/A self N/A N/A N/A N/A self exp N/A a b c test N/A _call N/A N/A cls input_ N/A N/A certbot.display.util separate_list_input N/A N/A separate_list_input input_ N/A classmethod test_commas N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self _call a,b,c,test N/A self exp N/A test_spaces N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self _call a b c test N/A self exp N/A test_both N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A self _call a, b, c, test N/A self exp N/A test_mess N/A N/A self N/A N/A N/A actual N/A N/A N/A self _call   a , b    c 	 test N/A N/A self _call ,a, ,, , b c  test   N/A N/A self _call ,,,,, , a b,,, , c,test N/A act actual N/A N/A N/A N/A self assertEqual act N/A self exp N/A N/A PlaceParensTest N/A N/A unittest TestCase N/A _call N/A N/A cls label N/A N/A certbot.display.util _parens_around_char N/A N/A _parens_around_char label N/A classmethod test_single_letter N/A N/A self N/A N/A N/A N/A N/A self assertEqual (a) N/A N/A self _call a N/A test_multiple N/A N/A self N/A N/A N/A N/A N/A self assertEqual (L)abel N/A N/A self _call Label N/A N/A N/A self assertEqual (y)es please N/A N/A self _call yes please N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main