File: //lib/python2.7/site-packages/bs4/tests/test_builder_registry.pyo
�
c�Tc @ s� d Z d d l Z d d l Z d d l m Z d d l m Z m Z m Z y d d l m
Z
e Z Wn e
k
r} e Z n Xy d d l m Z m Z e Z Wn e
k
r� e Z n Xd e j f d � � YZ d e j f d
� � YZ d S( s Tests of the builder registry.i����N( t
BeautifulSoup( t builder_registryt HTMLParserTreeBuildert TreeBuilderRegistry( t HTML5TreeBuilder( t LXMLTreeBuilderForXMLt LXMLTreeBuildert BuiltInRegistryTestc B s2 e Z d Z d � Z d � Z d � Z d � Z RS( s@ Test the built-in registry with the default builders registered.c C s� t r% | j t j d d � t � n t rJ | j t j d d � t � n | j t j d d � t � t r� | j t j d d � t � n d S( Nt fastt htmlt
permissivet xmlt strictt html5lib( t LXML_PRESENTt assertEqualt registryt lookupR R R t HTML5LIB_PRESENTR ( t self( ( sC /usr/lib/python2.7/site-packages/bs4/tests/test_builder_registry.pyt test_combination s
c C s� t r; | j t j d � t � | j t j d � t � nT | j t j d � d � t rv | j t j d � t � n | j t j d � t � d S( NR R (
R R R R R R t NoneR R R ( R ( ( sC /usr/lib/python2.7/site-packages/bs4/tests/test_builder_registry.pyt test_lookup_by_markup_type. s c C s� t rA | j t j d d � t � | j t j d d � t � n t rc | j t j d � t � n | j t j d � t � d S( Nt lxmlR R R
s html.parser( R R R R R R R R R ( R ( ( sC /usr/lib/python2.7/site-packages/bs4/tests/test_builder_registry.pyt test_named_library9 s
c C s^ t j d t � �- } t d d d �t d d d d g �Wd QX| j t t d d d �d S( Nt recordt t featuresR R s no-such-feature( t warningst catch_warningst TrueR t assertRaisest
ValueError( R t w( ( sC /usr/lib/python2.7/site-packages/bs4/tests/test_builder_registry.pyt* test_beautifulsoup_constructor_does_lookupF s
( t __name__t
__module__t __doc__R R R R"