File manager - Edit - /opt/imh-python/lib/python2.7/test/test_htmlparser.pyc
Back
� ��Wc @ s� d Z d d l Z d d l Z d d l Z d d l m Z d e j f d � � YZ d e f d � � YZ d e j f d � � YZ d e f d � � YZ d e f d � � YZ d � Z e d k r� e � n d S( s Tests for HTMLParser.py.i����N( t test_supportt EventCollectorc B st e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z RS( c C s, g | _ | j j | _ t j j | � d S( N( t eventst appendt HTMLParsert __init__( t self( ( sm /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_htmlparser.pyR s c C s� g } d } xm | j D]b } | d } | | k o= d k n re d | d d | d f | d <n | j | � | } q W| | _ | S( Ni t datai����i ( t NoneR R ( R t Lt prevtypet eventt type( ( sm /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_htmlparser.pyt get_events s # c C s | j d | | f � d S( Nt starttag( R ( R t tagt attrs( ( sm /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_htmlparser.pyt handle_starttag! s c C s | j d | | f � d S( Nt startendtag( R ( R R R ( ( sm /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_htmlparser.pyt handle_startendtag$ s c C s | j d | f � d S( Nt endtag( R ( R R ( ( sm /builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/test/test_htmlparser.pyt handle_endtag'