mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 22:08:07 -04:00
Remove display.py.
This commit is contained in:
parent
31b4b8e57c
commit
f105aedc92
1 changed files with 0 additions and 22 deletions
|
|
@ -1,22 +0,0 @@
|
|||
"""Manual test of display functions."""
|
||||
import sys
|
||||
|
||||
from certbot.display import util
|
||||
from certbot.tests.display import util_test
|
||||
|
||||
|
||||
def test_visual(displayer, choices):
|
||||
"""Visually test all of the display functions."""
|
||||
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])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
displayer = util.FileDisplay(sys.stdout, False)
|
||||
test_visual(displayer, util_test.CHOICES)
|
||||
Loading…
Reference in a new issue