!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/lib/snapd/snap/certbot/4892/lib/python3.12/site-packages/certbot/_internal/tests/display/   drwxr-xr-x
Free 0 B of 55 MB (0%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     util_test.py (2.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
"""Test :mod:`certbot.display.util`."""
import sys

import pytest

import certbot.tests.util as test_util


@test_util.patch_display_util()
def test_notify(mock_util):
    from certbot.display.util import notify
    notify("Hello World")
    mock_util().notification.assert_called_with(
        "Hello World", pause=False, decorate=False, wrap=False
    )


@test_util.patch_display_util()
def test_notification(mock_util):
    from certbot.display.util import notification
    notification("Hello World")
    mock_util().notification.assert_called_with(
        "Hello World", pause=True, decorate=True, wrap=True, force_interactive=False
    )


@test_util.patch_display_util()
def test_menu(mock_util):
    from certbot.display.util import menu
    menu("Hello World", ["one", "two"], default=0)
    mock_util().menu.assert_called_with(
        "Hello World", ["one", "two"], default=0, cli_flag=None, force_interactive=False
    )


@test_util.patch_display_util()
def test_input_text(mock_util):
    from certbot.display.util import input_text
    input_text("Hello World", default="something")
    mock_util().input.assert_called_with(
        "Hello World", default='something', cli_flag=None, force_interactive=False
    )


@test_util.patch_display_util()
def test_yesno(mock_util):
    from certbot.display.util import yesno
    yesno("Hello World", default=True)
    mock_util().yesno.assert_called_with(
        "Hello World", yes_label='Yes', no_label='No', default=True, cli_flag=None,
        force_interactive=False
    )


@test_util.patch_display_util()
def test_checklist(mock_util):
    from certbot.display.util import checklist
    checklist("Hello World", ["one", "two"], default="one")
    mock_util().checklist.assert_called_with(
        "Hello World", ['one', 'two'], default='one', cli_flag=None, force_interactive=False
    )


@test_util.patch_display_util()
def test_directory_select(mock_util):
    from certbot.display.util import directory_select
    directory_select("Hello World", default="something")
    mock_util().directory_select.assert_called_with(
        "Hello World", default='something', cli_flag=None, force_interactive=False
    )


if __name__ == "__main__":
    sys.exit(pytest.main(sys.argv[1:] + [__file__]))  # pragma: no cover

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0034 ]--