403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Python312/Lib/site-packages/bs4/tests/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Python312/Lib/site-packages/bs4/tests/__pycache__/test_builder_registry.cpython-312.pyc
�

V	�g����dZddlZddlZddlmZddlmZddlmZ	m
Z
mZddlm
Z
ddlmZmZerdd	lmZerdd
lmZmZGd�de�ZGd
�de�Zy)zTests of the builder registry.�N)�Type)�
BeautifulSoup)�builder_registry�TreeBuilder�TreeBuilderRegistry)�HTMLParserTreeBuilder�)�HTML5LIB_PRESENT�LXML_PRESENT)�HTML5TreeBuilder)�LXMLTreeBuilderForXML�LXMLTreeBuilderc�(�eZdZdZd�Zd�Zd�Zd�Zy)�TestBuiltInRegistryz@Test the built-in registry with the default builders registered.c��tjdd�tk(sJ�tr>tjdd�tk(sJ�tjdd�t
k(sJ�tr tjdd�tk(sJ�yy)N�strict�html�fast�
permissive�xml�html5lib)�registry�lookuprrrr
r
r��selfs �AC:\Python312\Lib\site-packages\bs4/tests/test_builder_registry.py�test_combinationz$TestBuiltInRegistry.test_combination#st�����x��0�4I�I�I�I���?�?�6�6�2�o�E�E�E��?�?�<��7�;P�P�P�P���?�?�:�v�6�:J�J�J�J��c�>�tr=tjd�tk(sJ�tjd�tk(sJ�ytjd��J�t
rtjd�tk(sJ�ytjd�tk(sJ�y)Nrr)rrrrr
r
rrrs r�test_lookup_by_markup_typez.TestBuiltInRegistry.test_lookup_by_markup_type+s|����?�?�6�*�o�=�=�=��?�?�5�)�-B�B�B�B��?�?�5�)�1�1�1�����v�.�2B�B�B�B����v�.�2G�G�G�Grc��tr>tjdd�tk(sJ�tjdd�tk(sJ�t
rtjd�tk(sJ�tjd�tk(sJ�y)N�lxmlrrrzhtml.parser)rrrr
rr
rrrs r�test_named_libraryz&TestBuiltInRegistry.test_named_library6sk����?�?�6�5�1�5J�J�J�J��?�?�6�6�2�o�E�E�E���?�?�:�.�2B�B�B�B����}�-�1F�F�F�Frc�
�tjd��5tdd��tdddg��	ddd�tjt
�5tdd��ddd�y#1swY�9xYw#1swYyxYw)NT)�record�r)�featuresrzno-such-feature)�warnings�catch_warningsr�pytest�raises�
ValueErrorrs r�*test_beautifulsoup_constructor_does_lookupz>TestBuiltInRegistry.test_beautifulsoup_constructor_does_lookup?sv��
�
$�
$�D�
1�	�

�"�v�.��"���'7�8��	��]�]�:�
&�	:��"�'8�9�	:�	:�	�	��	:�	:�s�A-�A9�-A6�9BN)�__name__�
__module__�__qualname__�__doc__rr r#r-�rrrr s��J�K�	H�G�:rrc�V�eZdZdZd�Zdedeefd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zy
)�TestRegistryz.Test the TreeBuilderRegistry class in general.c�"�t�|_y�N)rrrs r�setup_methodzTestRegistry.setup_methodSs��+�-��
r�feature_list�returnc��tddj|�ztfd|i�}|jj	|�|S)N�Builder_�_r')�type�join�objectr�register)rr8�clss   r�builder_for_featuresz!TestRegistry.builder_for_featuresVsA�������,�/�/�&��Z��<V�
��	
�
�
���s�#��
rc��|j�}|jjd��J�|jj�|k(sJ�y)N�foo�rBrr�r�builders  r�test_register_with_no_featuresz+TestRegistry.test_register_with_no_features^sJ���+�+�-���}�}�#�#�E�*�2�2�2��}�}�#�#�%��0�0�0rc��|jdd�}|jjd�|usJ�|jjd�|usJ�y�NrD�barrErFs  r�0test_register_with_features_makes_lookup_succeedz=TestRegistry.test_register_with_features_makes_lookup_succeedisN���+�+�E�5�9���}�}�#�#�E�*�g�5�5�5��}�}�#�#�E�*�g�5�5�5rc�>�|jjd��J�y)N�baz�rrrs r�4test_lookup_fails_when_no_builder_implements_featurezATestRegistry.test_lookup_fails_when_no_builder_implements_featurens���}�}�#�#�E�*�2�2�2rc��|jd�|jd�}|jj�|k(sJ�yrJrE)r�builder2s  r�Ctest_lookup_gets_most_recent_registration_when_no_feature_specifiedzPTestRegistry.test_lookup_gets_most_recent_registration_when_no_feature_specifiedqs;���!�!�%�(��,�,�U�3���}�}�#�#�%��1�1�1rc�<�|jj��J�yr6rOrs r�2test_lookup_fails_when_no_tree_builders_registeredz?TestRegistry.test_lookup_fails_when_no_tree_builders_registeredvs���}�}�#�#�%�-�-�-rc�^�|jd�|jd�|jddd�}|jddd�}|jd�|jd�|jjdd�|k(sJ�|jjddd�|k(sJ�y)NrDrKrN�quuxrE)r�has_both_early�
has_both_lates   r�<test_lookup_gets_most_recent_builder_supporting_all_featureszITestRegistry.test_lookup_gets_most_recent_builder_supporting_all_featuresys����!�!�%�(��!�!�%�(��2�2�5�%��G���1�1�%���G�
��!�!�%�(��!�!�%�(��}�}�#�#�E�5�1�]�B�B�B��}�}�#�#�E�5�%�8�N�J�J�Jrc��|jdd�|jdd�|jjdd��J�y)NrDrKrNrErs r�:test_lookup_fails_when_cannot_reconcile_requested_featureszGTestRegistry.test_lookup_fails_when_cannot_reconcile_requested_features�s?���!�!�%��/��!�!�%��/��}�}�#�#�E�5�1�9�9�9rN)r.r/r0r1r7�strrrrBrHrLrPrSrUrZr\r2rrr4r4PsF��8�.��#��$�{�:K��	1�6�
3�2�
.�
K�:rr4)r1r*r(�typingr�bs4r�bs4.builderrrrr�bs4.builder._htmlparserrr&r
r�bs4.builder._html5libr�bs4.builder._lxmlr
rr?rr4r2rr�<module>rdsQ��$�
������
:��
�6���-:�&�-:�`;:�6�;:r

Youez - 2016 - github.com/yon3zu
LinuXploit