403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/certbot/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/certbot/tests/__pycache__/util.cpython-314.pyc
+
�K�gTF���Rt^RIt^RIHt^RIt^RIHt^RIt^RI	t	^RI
t
^RIt^RIHt^RI
t
^RIt^RIt^RIHt^RIHt^RIHt^RIHt^R	IHt^R
IHt^RIHt^RIHt^RIt^R
IHt^RIHt^RIHt^RIH t ^RI!H"t"^RI#t$^RI%H&t&^RI'H(t(^RI'H)t)^RI*H+t+^RI*H,t,^RI*H-t-^RI.H/t0^RI1H2t2^RI1H3t3^RI4H)t5^RI6H7t7!RR]7Pp4t9RRlt:R R!lt;R"R#lt<R$R%lt=R&R'lt>R(R)lt?R*R+lt@RFR,R-lltAR.R/ltBRGR0R1lltC!R2R34tDR4R5ltER6R7ltFR8R9ltG!R:R;]P�4tI!R<R=]I4tJR>R?ltKR@RAltLRBRCltMRDREltNR#)HzTest utilities.N)�	ExitStack)�reload)�synchronize��Any��Callable)�cast)�IO)�Iterable)�List)�Optional)�Union)�mock)�x509)�default_backend)�
serialization)�
RSAPrivateKey)�crypto)�
configuration)�util)�	constants)�lock)�storage)�obj)�
filesystem)�os)�commonc��a�]tRt^,toRtV3RlRltV3RlRltRV3RlRlltV3R	lR
ltRV3RlRllt	V3R
lRlt
V3RlRlt]V3RlRl4t
V3RlRltV3RlRltRtVtR#)�DummyInstallerz(Dummy installer plugin for test purpose.c�0<�V^8�dQhRS[S[,/#���return)r�str)�format�
__classdict__s"��4/usr/lib/python3/dist-packages/certbot/tests/util.py�__annotate__�DummyInstaller.__annotate__.s�����x��}��c��.#�N���selfs&r'�
get_all_names�DummyInstaller.get_all_names.����	r*c�<<�V^8�dQhRS[RS[RS[RS[RS[RR/#)r"�domain�	cert_path�key_path�
chain_path�fullchain_pathr#N�r$)r%r&s"�r'r(r)1s:���
�
�#�
�#�
��
�RU�
�$'�
�,0�
r*c��R#r,r-)r/r4r5r6r7r8s&&&&&&r'�deploy_cert�DummyInstaller.deploy_cert1���r*Nc	�f<�V^8�dQhRS[RS[RS[S[S[S[,S[3,,RR/#)r"r4�enhancement�optionsr#N)r$r
rr)r%r&s"�r'r(r)5s=���
�
�c�
��
�!�%��S�	�3��"7�8�
�DH�
r*c��R#r,r-)r/r4r?r@s&&&&r'�enhance�DummyInstaller.enhance5r=r*c�0<�V^8�dQhRS[S[,/#r!)rr$)r%r&s"�r'r(r)9s������S�	�r*c��.#r,r-r.s&r'�supported_enhancements�%DummyInstaller.supported_enhancements9r2r*c�:<�V^8�dQhRS[S[,RS[RR/#)r"�title�	temporaryr#N)r
r$�bool)r%r&s"�r'r(r)<s&���
�
�(�3�-�
�4�
�D�
r*c��R#r,r-)r/rIrJs&&&r'�save�DummyInstaller.save<���r*c�<�V^8�dQhRR/#�r"r#Nr-)r%r&s"�r'r(r)?s���
�
�T�
r*c��R#r,r-r.s&r'�config_test�DummyInstaller.config_test?rOr*c�<�V^8�dQhRR/#rQr-)r%r&s"�r'r(r)B����
�
��
r*c��R#r,r-r.s&r'�restart�DummyInstaller.restartBrOr*c�2<�V^8�dQhRS[R,RR/#)r"�addNr#).Nr)r%r&s"�r'r(r)Fs ���
�
�x�	�':�
�t�
r*c��R#r,r-)�clsr[s&&r'�add_parser_arguments�#DummyInstaller.add_parser_argumentsEr=r*c�<�V^8�dQhRR/#rQr-)r%r&s"�r'r(r)IrVr*c��R#r,r-r.s&r'�prepare�DummyInstaller.prepareIrOr*c� <�V^8�dQhRS[/#r!r9)r%r&s"�r'r(r)Ls�����3�r*c��R#)�r-r.s&r'�	more_info�DummyInstaller.more_infoLs��r*r-r,)NF)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r0r;rBrFrMrSrX�classmethodr^rbrg�__static_attributes__�__classdictcell__�r&s@r'rr,sv����2���
�
�
�
���
�
�
�
�
�
��
��
�
�
��r*rc�0�V^8�dQhR\R\/#�r"�namesr#r9)r%s"r'r(r(Ps�������r*c�2�\4p\P!VP4\P
P
\4P!R.VO5!pVP\P
PV44p\V4#)zPath to a test vector.�testdata)r�atexit�register�close�	importlib�	resources�files�__package__�joinpath�
enter_context�as_filer$)rt�
_file_manager�
vector_ref�paths*   r'�vector_pathr�Psl���K�M�
�O�O�M�'�'�(��$�$�*�*�;�7�@�@��T�e�T�J��&�&�y�':�':�'B�'B�:�'N�O�D��t�9�r*c�0�V^8�dQhR\R\/#rs)r$�bytes)r%s"r'r(r(Ys��
�
��
��
r*c��\PP\4P!R.VO5!pVP4pVP
4PRR4P4# \dTu#i;i)zLoad contents of a test vector.rvz
�
)
rzr{r|r}r~�
read_bytes�decode�replace�encode�
ValueError)rtr��datas*  r'�load_vectorr�Yss���$�$�*�*�;�7�@�@��T�e�T�J�� � �"�D���{�{�}�$�$�V�T�2�9�9�;�;�������s�-A5�5
B�Bc�H�V^8�dQhR\R\R\R\/#�r"�filename�
loader_pem�
loader_derr#)r$r)r%s"r'r(r(fs/��J�J�C�J�X�J�8�J�PX�Jr*c��\PPV4wr4VP4R8XdV#VP4R8XdV#\	R4h�z.pemz.derz1Loader could not be recognized based on extension�rr��splitext�lowerr��r�r�r��_�exts&&&  r'�
_guess_loaderr�fsL��
�W�W�
�
�h�
'�F�A�
�y�y�{�f����	�����	���
�H�
I�Ir*c�D�V^8�dQhR\R\P/#rs)r$r�Certificate)r%s"r'r(r(os ��'�'�c�'�d�.�.�'r*c��\VR,\P\P4pV!\	V!4#)zLoad certificate.���)r�r�load_pem_x509_certificate�load_der_x509_certificater�)rt�loaders* r'�	load_certr�os5��
�
�b�	�4�1�1�4�3Q�3Q��F��+�u�%�&�&r*c�D�V^8�dQhR\R\P/#rs)r$�jose�ComparableRSAKey)r%s"r'r(r(ws$��C�C�#�C�$�2G�2G�Cr*c�<�\P!\V!4#)z5Load RSA private key wrapped in jose.ComparableRSAKey)r�r��load_rsa_private_key_pem)rts*r'�load_jose_rsa_private_key_pemr�ws��� � �!9�5�!A�B�Br*c�H�V^8�dQhR\R\R\R\/#r�)r$�int)r%s"r'r(r(|s/��J�J�c�J�s�J��J�PS�Jr*c��\PPV4wr4VP4R8XdV#VP4R8XdV#\	R4hr�r�r�s&&&  r'�_guess_loader_pyopensslr�|sL��
�W�W�
�
�h�
'�F�A�
�y�y�{�f����	�����	���
�H�
I�Ir*c�0�V^8�dQhR\R\/#rs)r$r)r%s"r'r(r(�s��
�
�S�
�]�
r*c�6�\VR,\P\P4pV\P8Xd\P
pM\PpV!\V!R\4R7p\V\4'gQhV#)zLoad RSA private key.N)�password�backendr�)r�r�FILETYPE_PEM�
FILETYPE_ASN1r�load_pem_private_key�load_der_private_keyr�r�
isinstancer)rtr��	loader_fn�keys*   r'r�r��sr��
$�U�2�Y��0C�0C�V�EY�EY�
Z�F�
��$�$�$�!�6�6�	�!�6�6�	�
�K��'�$��@Q�
R�C��c�=�)�)�)�)��Jr*c�H�V^8�dQhR\R\R\R\/#)r"�
config_dir�testfile�ecr#)r$rK)r%s"r'r(r(�s(��*�*�S�*�C�*�T�*�S�*r*c
�Ja�VR\R4)p\PPS\P
4p\PPS\PV4p\PPS\PV4pWTV3F@p\PPV4'dK*\P!V4KB	\RPV'dRMR44p\P!V4FTp	\P!\PPW�4\PPWY44KV	\ P"Ftp	\P$!\PPVRPV	44\PPVRPV	444Kv	\PPSWA4p
\'\V44;_uu_4p\'V
R4;_uu_4pVP)V3R	lV44RRR4RRR4V
# +'giL;i +'giT
#;i)
a�Creates a lineage defined by testfile.

This creates the archive, live, and renewal directories if
necessary and creates a simple lineage.

:param str config_dir: path to the configuration directory
:param str testfile: configuration file to base the lineage on
:param bool ec: True if we generate the lineage with an ECDSA key

:returns: path to the renewal conf file for the created lineage
:rtype: str

Nz.confzsample-archive{}z-ecrfz{0}1.pemz{0}.pem�wc3�F<"�TFqPRS4x�K	R#5i)�MAGICDIRN)r�)�.0�liner�s& �r'�	<genexpr>�make_lineage.<locals>.<genexpr>�s!����F�AD����Z��4�4��s�!)�lenrr��joinr�RENEWAL_CONFIGS_DIR�ARCHIVE_DIR�LIVE_DIR�existsr�makedirsr�r%�listdir�shutil�copyfiler�ALL_FOUR�symlink�open�
writelines)
r�r�r��lineage_name�conf_dir�archive_dir�live_dir�	directory�sample_archive�kind�	conf_path�src�dsts
f&&          r'�make_lineager��s�����N�c�'�l�]�+�L��w�w�|�|��I�1�1�3�H��'�'�,�,��I�)�)�<�9�K��w�w�|�|��I�&�&��6�H�"�X�7�	��w�w�~�~�i�(�(����	�*�8�!�!3�!:�!:�B�5�B�!O�P�N��
�
�>�*����������^�:������[�7�	9�+�� � ��
�
�
�2�7�7�<�<��Z�->�->�t�-D�E��7�7�<�<��)�*:�*:�4�*@�A�	C�!������Z��<�I�	
�k�(�#�	$�	$��
�)�S�
!�
!�S��N�N�F�AD�F�
F�"�
%�
��	"�
!��
%�	$�
��s$�;J�I>	�,J�>J
�	J�J"	c�8�V^8�dQhR\P/#r!)r�	MagicMock)r%s"r'r(r(�s��T�T�D�N�N�Tr*c�j�\\P\P!R\R74#)aPatch certbot.display.util to use a special mock display utility.

The mock display utility works like a regular mock object, except it also
also asserts that methods are called with valid arguments.

The mock created by this patch mocks out Certbot internals. That is, the
mock object will be called by the certbot.display.util functions and the
mock returned by that call will be used as the display utility. This was
done to simplify the transition from zope.component and mocking
certbot.display.util functions directly in test code should be preferred
over using this function in the future.

See https://github.com/certbot/certbot/issues/8948

:returns: patch on the function used internally by certbot.display.util to
    get a display utility instance
:rtype: mock.MagicMock

�)certbot._internal.display.obj.get_display)�new_callable)r	rr��patch�_create_display_util_mockr-r*r'�patch_display_utilr��s+��(�����
�
�+V�8Q�!S�T�Tr*c�Z�V^8�dQhR\\,R\P/#�r"�stdoutr#)r
r
rr�)r%s"r'r(r(�s(��_�_����_�(,���_r*c	��V'dTM\P!4p\\P\P
!R\
V4R74#)a�Patch certbot.display.util to use a special mock display utility.

The mock display utility works like a regular mock object, except it also
asserts that methods are called with valid arguments.

The mock created by this patch mocks out Certbot internals. That is, the
mock object will be called by the certbot.display.util functions and the
mock returned by that call will be used as the display utility. This was
done to simplify the transition from zope.component and mocking
certbot.display.util functions directly in test code should be preferred
over using this function in the future.

See https://github.com/certbot/certbot/issues/8948

The `message` argument passed to the display utility methods is passed to
stdout's write method.

:param object stdout: object to write standard output to; it is
    expected to have a `write` method
:returns: patch on the function used internally by certbot.display.util to
    get a display utility instance
:rtype: mock.MagicMock

r�)�new)�io�StringIOr	rr�r��%_create_display_util_mock_with_stdout)r�s&r'�patch_display_util_with_stdoutr��s@��4�V�2�;�;�=�F������
�
�+V�/T�U[�/\�!^�_�_r*c�a�]tRt^�toRtRR]PP3V3RlRlltV3RlRlt	V3RlR	lt
V3R
lRltV3RlR
ltRt
VtR#)�
FreezableMocka�Mock object with the ability to freeze attributes.

This class works like a regular mock.MagicMock object, except
attributes and behavior set before the object is frozen cannot
be changed during tests.

If a func argument is provided to the constructor, this function
is called first when an instance of FreezableMock is called,
followed by the usual behavior defined by MagicMock. The return
value of func is ignored.

FNc�T<�V^8�dQhRS[RS[S[RS[3,,RS[RR/#)r"�frozen�func.�return_valuer#N)rKr
rr)r%r&s"�r'r(�FreezableMock.__annotate__s9�����t��8�H�S�#�X�<N�3O��"��?C�r*c���V'd\4MR0VnW n\P!4VnV\PP8wdW0nWn	R#)�freezeN)
�set�_frozen_set�_funcrr��_mock�sentinel�DEFAULTr��_frozen)r/r�r�r�s&&&&r'�__init__�FreezableMock.__init__sB��$*�3�5������
��^�^�%��
��4�=�=�0�0�0� ,���r*c�<�V^8�dQhRR/#rQr-)r%r&s"�r'r(r�s������r*c��RVnR#)z)Freeze object preventing further changes.TN)rr.s&r'r��FreezableMock.freezes	����r*c�@<�V^8�dQhRS[RS[RS[P/#)r"�args�kwargsr#)rrr�)r%r&s"�r'r(r�s&���+�+�c�+�S�+�T�^�^�+r*c�f�VPeVP!V/VBVP!V/VB#r,)r�r�)r/rrs&*,r'�__call__�FreezableMock.__call__s1���:�:�!��J�J��'��'��z�z�4�*�6�*�*r*c�&<�V^8�dQhRS[RS[/#)r"�namer#�r$r)r%r&s"�r'r(r�s���I�I�S�I�S�Ir*c�F�VR8Xd\PW4#VR9d!\\PVR4V4#VR8XgWP9d\PW4#\\PVR4V4# \dR#i;i)rFr�r��r��side_effect)�object�__getattribute__�AttributeError�getattrr�)r/r
s&&r'r�FreezableMock.__getattribute__s����9��
��.�.�t�:�:��5�
5��6�2�2�4��A�4�H�H�
�]�
"�d�.>�.>�&>��*�*�4�6�6��6�2�2�4��A�4�H�H��"�
��
�s�B�B �B c�*<�V^8�dQhRS[RS[RR/#)r"r
�valuer#Nr)r%r&s"�r'r(r�$s"���5�5��5�C�5�D�5r*c�@�VP'd9WP9d\RV,4h\VPW4#VR8wdVPPV4VR9d\VPW4#\PWV4#)a�Before it is frozen, attributes are set on the FreezableMock
instance and added to the _frozen_set. Attributes in the _frozen_set
cannot be changed after the FreezableMock is frozen. In this case,
they are set on the underlying _mock.

In cases of return_value and side_effect, these attributes are always
passed through to the instance's _mock and added to the _frozen_set
before the object is frozen.

zCannot change frozen attribute r�r)rr�r�setattrr�r[r�__setattr__)r/r
rs&&&r'r�FreezableMock.__setattr__$s����<�<�<��'�'�'�$�%F��%M�N�N��4�:�:�t�3�3��=� ���� � ��&��2�2��4�:�:�t�3�3��!�!�$�e�4�4r*)rr�r�r�r�)rirjrkrlrmrr�r�rr�r
rrrorprqs@r'r�r��sS�����',�RV�%)�]�]�%:�%:�����+�+�
I�I�5�5r*r�c�$�V^8�dQhR\/#r!)r�)r%s"r'r(r(=s��<�<�=�<r*c	��\4p\\P4Uu.uFIp\	\\PV44'gK.VP
R4'dKGVNKK	ppVF)pVR8wgK\R\R7p\WV4K+	VP4\RVR7#uupi)�__�notificationT�r�r��r�r�)
r��dir�display_obj�FileDisplay�callabler�
startswith�_assert_valid_callrr�)�displayr��method_list�method�frozen_mocks     r'r�r�=s����o�G�$'��(?�(?�$@�2�$@�D��w�{�'>�'>��E�F���?�?�4�0��4�$@�K�2����^�#�'�t�:L�M�K��G�[�1���N�N����7�;�;��2s�+C�C�/Cc�0�V^8�dQhR\R\/#r�)r
r�)r%s"r'r(r(Ks��<�<�"�<��<r*c	��aa�RV3RlloRV3Rllp\4p\\P4Uu.uFIp\	\\PV44'gK.VP
R4'dKGVNKK	ppVF1pVR8Xd\RSR7pM
\RVR7p\W%V4K3	VP4\RVR7#uupi)	c�@�V^8�dQhR\R\R\RR/#)r"�message�unused_args�
unused_kwargsr#Nr)r%s"r'r(�;_create_display_util_mock_with_stdout.<locals>.__annotate__Ls(��"�"�C�"�s�"�S�"�T�"r*c�><�V'dSPV4R#R#)z$Write to message to stdout.
        N)�write)r0r1r2r�s&*,�r'�
_write_msg�9_create_display_util_mock_with_stdout.<locals>._write_msgLs�����L�L��!�r*c�4�V^8�dQhR\R\RR/#�r"rrr#Nr)r%s"r'r(r3Rs!��$�$�3�$�#�$�$�$r*c�.<�\W4S!V/VBR#)z,
Mock function for display utility methods.
N)r()rrr6s*,�r'�mock_method�:_create_display_util_mock_with_stdout.<locals>.mock_methodRs���	�4�(��D�#�F�#r*rr Tr!r")	r�r#r$r%r&rr'rr�)r�r;r)r�r*r+r,r6sf      @r'r�r�Ks����"�"�$�$��o�G�$'��(?�(?�$@�2�$@�D��w�{�'>�'>��E�F���?�?�4�0��4�$@�K�2����^�#�'�t�-7�9�K�(�t�-8�:�K����-���N�N����7�;�;��2s�+C�*C�Cc�4�V^8�dQhR\R\RR/#r9r)r%s"r'r(r(js&��	B�	B�c�	B�S�	B�T�	Br*c	���V'd
V^,MVR,.pRVPRR4RVPRR4RVPRR4/p\P!V/VBR#)�r0�defaultN�cli_flag�force_interactiveF)�get�display_util�assert_valid_call)rr�assert_args�
assert_kwargss*,  r'r(r(jsf��"�4��7��y�(9�:�K�	�6�:�:�i��.��F�J�J�z�4�0��V�Z�Z�(;�U�C��M��"�"�K�A�=�Ar*c�Ha�]tRtRtoRtV3RlRltV3RlRltRtVtR#)	�TempDirTestCaseivzBBase test class which sets up and tears down a temporary directoryc�<�V^8�dQhRR/#rQr-)r%r&s"�r'r(�TempDirTestCase.__annotate__ys���*�*�t�*r*c�:�\P!4VnR#)zExecute before testN)�tempfile�mkdtemp�tempdirr.s&r'�setUp�TempDirTestCase.setUpys���'�'�)��r*c�<�V^8�dQhRR/#rQr-)r%r&s"�r'r(rK}s���$�$�$�$r*c���\P!4.\P!4n\P
!4\P!VP4R#)zExecute after testN)	�logging�shutdown�	getLogger�handlersr�_release_locksr��rmtreerOr.s&r'�tearDown�TempDirTestCase.tearDown}s?��	����(*�����$������
�
�d�l�l�#r*)rON)	rirjrkrlrmrPrZrorprqs@r'rIrIvs����L�*�*�$�$r*rIc�Baa�]tRtRtoRtV3RlV3RlltRtVtV;t#)�ConfigTestCasei�z2Test class which sets up a NamespaceConfig object.c�<�V^8�dQhRR/#rQr-)r%r&s"�r'r(�ConfigTestCase.__annotate__�s���=�=�t�=r*c	�<�\SV`4\P!\P
!R/\P!\P4B4Vn
VPP/4RVPPn
\PP!VP"R4VPPn\PP!VP"R4VPPn\PP!VP"R4VPPn\PR,VPPn\PR,VPPn\PR,VPPnRVPPnR#)	�certonly�config�work�logs�auth_cert_path�auth_chain_pathzhttps://example.comNr-)�superrPr�NamespaceConfigrr��copy�deepcopyr�CLI_DEFAULTSrb�set_argument_sources�	namespace�verbrr�r�rOr��work_dir�logs_dirr5r8r7�server)r/�	__class__s&�r'rP�ConfigTestCase.setUp�s=���
��
��#�3�3��N�N�C�T�]�]�9�+A�+A�B�C�
���	
���(�(��,�%/������"�+-�7�7�<�<����h�+O������(�)+�����d�l�l�F�)K������&�)+�����d�l�l�F�)K������&�*3�*@�*@�AQ�*R������'�/8�/E�/E�FW�/X������,�+4�+A�+A�BS�+T������(�'<������$r*)rb)	rirjrkrlrmrProrp�
__classcell__)rrr&s@@r'r]r]�s����<�=�=�=r*r]c�h�V^8�dQhR\PR\PR\RR/#)r"�event_in�	event_outr�r#N)r�Eventr$)r%s"r'r(r(�s6����;�,�,���9J�9J��RU��Z^�r*c�V�\PPV4'd\P!V4pM\P
!V4pVP
4VP^R7'gQR4hVP4R# TP4i;i)al
Acquire a file lock on given path, then wait to release it. This worker is coordinated
using events to signal when the lock should be acquired and released.
:param multiprocessing.Event event_in: event object to signal when to release the lock
:param multiprocessing.Event event_out: event object to signal when the lock is acquired
:param path: the path to lock
��timeoutz*Timeout while waiting to release the lock.N)	rr��isdirr�lock_dir�LockFiler��wait�release)rvrwr��my_locks&&& r'�_handle_lockr��ss��
�w�w�}�}�T����-�-��%���-�-��%����
�
���}�}�R�}�(�(�V�*V�V�(����������s�'B�<B�B(c�N�V^8�dQhR\.\3,R\RR/#)r"�callback�path_to_lockr#N)rrr$)r%s"r'r(r(�s*��!�!�H�R��W�-�!�S�!�T�!r*c��\\4\P!4p\P!4p\P!\
W#V3R7pVP
4VP^R7'gQR4hV!4VP4VP^
R7VP^8XgQhR#)z�
Grab a lock on path_to_lock from a foreign process then execute the callback.
:param callable callback: object to call after acquiring the lock
:param str path_to_lock: path to file or directory to lock
)�targetrrzz*Timeout while waiting to acquire the lock.N)�
reload_moduler�multiprocessingrx�Processr��startrr�r��exitcode)r�r��
emit_event�
receive_event�processs&&   r'�
lock_and_callr��s����$�� �&�&�(�J�#�)�)�+�M��%�%�\�,6�|�+T�V�G��M�M�O����b��)�)�W�+W�W�)��J��N�N���L�L��L�����q� � � r*c��V^8�dQhR\R\\R\3,.\R\3,3,/#)r"�reasonr#.)r$rr)r%s"r'r(r(�s:����C��H�h�s�C�x�.@�-A�8�C�QT�H�CU�-U�$V�r*c�a�RV3RllpV#)zFDecorator to skip permanently a test on Windows. A reason is required.c�d�V^8�dQhR\R\3,R\R\3,/#)r"�function.r#)rr)r%s"r'r(�%skip_on_windows.<locals>.__annotate__�s0��J�J�(�3��8�,�J��#�s�(�1C�Jr*c�`<�\P!\PR8HS4!V4#)zWrapped version�win32)�unittest�skipIf�sys�platform)r�r�s&�r'�wrapper� skip_on_windows.<locals>.wrapper�s"������s�|�|�w�6��?��I�Ir*r-)r�r�sf r'�skip_on_windowsr��s���J�J��Nr*c�0�V^8�dQhR\R\/#)r"r�r#r9)r%s"r'r(r(�s��5�5�C�5�C�5r*c�h�\PP\P!4V4#)z�
Return the given path joined to the tempdir path for the current platform
Eg.: 'cert' => /tmp/cert (Linux) or 'C:\Users\currentuser\AppData\Temp\cert' (Windows)
)rr�r�rM�
gettempdir)r�s&r'�	temp_joinr��s"��
�7�7�<�<��+�+�-�t�4�4r*)Tr,)Ormrw�
contextlibrrirzrr��importlib.resourcesr�rTr�rr�r�rM�typingrrr	r
rrr
rr�r�cryptographyr�cryptography.hazmat.backendsr�cryptography.hazmat.primitivesr�-cryptography.hazmat.primitives.asymmetric.rsar�josepyr��OpenSSLr�certbotrr�certbot._internalrrr�certbot._internal.displayrr$�certbot.compatrr�certbot.displayrD�certbot.pluginsr�	Installerrr�r�r�r�r�r�r�r�r�r�r�r�r�r(�TestCaserIr]r�r�r�r�r-r*r'�<module>r�s���
� ��-��	���'�
�
�������������8�8�G���!��'�"�%�8�%��0�"�!�V�%�%�!�H�
�J�'�C�
J�
�*�ZT�0_�@B5�B5�J<�<�>	B�$�h�'�'�$�,=�_�=�&�&!�6�5r*

Youez - 2016 - github.com/yon3zu
LinuXploit