%PDF- %PDF-
Direktori : /usr/local/lib/python2.7/test/ |
Current File : //usr/local/lib/python2.7/test/test_htmllib.pyo |
ó Nêáac @ s« d d l Z d d l Z d d l m Z e j d d e ƒZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d e j f d „ ƒ YZ d „ Z e d k r§ e ƒ n d S( iÿÿÿÿN( t test_supportt htmllibt deprecatedt AnchorCollectorc B s# e Z d „ Z d „ Z d „ Z RS( c O s# g | _ t j j | | | Ž d S( N( t _AnchorCollector__anchorsR t HTMLParsert __init__( t selft argst kw( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyR s c C s | j S( N( R ( R ( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyt get_anchor_info s c G s | j j | ƒ d S( N( R t append( R R ( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyt anchor_bgn s ( t __name__t __module__R R R ( ( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyR s t DeclCollectorc B s# e Z d „ Z d „ Z d „ Z RS( c O s# g | _ t j j | | | Ž d S( N( t _DeclCollector__declsR R R ( R R R ( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyR s c C s | j S( N( R ( R ( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyt get_decl_info s c C s | j j | ƒ d S( N( R R ( R t data( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyt unknown_decl s ( R R R R R ( ( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyR s t HTMLParserTestCasec B s e Z d „ Z d „ Z RS( c C sR t t j ƒ d d ƒ} | j d ƒ | j ƒ | j | j ƒ d d d g ƒ d S( Nt verbosei s <a href='http://foo.org/' name='splat'> </a> <a href='http://www.python.org/'> </a> <a name='frob'> </a> s http://foo.org/t splatt s http://www.python.org/t frob( s http://foo.org/R R ( s http://www.python.org/R R ( R R R ( R t formattert NullFormattert feedt closet assertEqualR ( R t parser( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyt test_anchor_collection s c C sO t t j ƒ d d ƒ} | j d ƒ | j ƒ | j | j ƒ d d g ƒ d S( NR i s— <html> <body> hallo <![if !supportEmptyParas]> <![endif]> </body> </html> s if !supportEmptyParast endif( R R R R R R R ( R R ( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyt test_decl_collection/ s ( R R R R! ( ( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyR s c C s t j t ƒ d S( N( R t run_unittestR ( ( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyt test_main@ s t __main__( R t unittestt testR t import_modulet TrueR R R R t TestCaseR R# R ( ( ( s- /usr/local/lib/python2.7/test/test_htmllib.pyt <module> s !