def METHOD_NAME(self):
    """test CLI.Display"""
    parser = OptionParser("dummy")
    parser.install_display_options(verbose_options=True)
    options, _ = parser.parse_args([])
    ns = NodeSet("hostfoo")
    mtree = MsgTree()
    mtree.add("hostfoo", "message0")
    mtree.add("hostfoo", "message1")
    for whencolor in WHENCOLOR_CHOICES: # test whencolor switch
        for label in [True, False]:     # test no-label switch
            options.label = label
            options.whencolor = whencolor
            disp = Display(options)
            # inhibit output
            disp.out = StringIO()
            disp.err = StringIO()
            # test print_* methods...
            disp.print_line(ns, "foo bar")
            disp.print_line_error(ns, "foo bar")
            disp.print_gather(ns, list(mtree.walk())[0][0])
            # test also string nodeset as parameter
            disp.print_gather("hostfoo", list(mtree.walk())[0][0])
            # test line_mode property
            self.assertEqual(disp.line_mode, False)
            disp.line_mode = True
            self.assertEqual(disp.line_mode, True)
            disp.print_gather("hostfoo", list(mtree.walk())[0][0])
            disp.line_mode = False
            self.assertEqual(disp.line_mode, False)