Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.191.29.0
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : test_htmlparser.pyo
�
?��cc@s�dZddlZddlZddlZddlmZdejfd��YZdefd��YZdejfd	��YZ	d
e	fd��YZ
de	fd
��YZd�Ze
dkr�e�ndS(sTests for HTMLParser.py.i����N(ttest_supporttEventCollectorcBsteZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
RS(cCs,g|_|jj|_tjj|�dS(N(teventstappendt
HTMLParsert__init__(tself((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyRs	cCs�g}d}xm|jD]b}|d}||ko=dknred|dd|df|d<n
|j|�|}qW||_|S(Nitdatai����i(tNoneRR(RtLtprevtypeteventttype((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt
get_eventss
#

	cCs|jd||f�dS(Ntstarttag(R(Rttagtattrs((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pythandle_starttag!scCs|jd||f�dS(Ntstartendtag(R(RRR((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pythandle_startendtag$scCs|jd|f�dS(Ntendtag(R(RR((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt
handle_endtag'scCs|jd|f�dS(Ntcomment(R(RR((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pythandle_comment,scCs|jd|f�dS(Ntcharref(R(RR((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pythandle_charref/scCs|jd|f�dS(NR(R(RR((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pythandle_data2scCs|jd|f�dS(Ntdecl(R(RR((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pythandle_decl5scCs|jd|f�dS(Nt	entityref(R(RR((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pythandle_entityref8scCs|jd|f�dS(Ntpi(R(RR((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt	handle_pi;scCs|jd|f�dS(Nsunknown decl(R(RR((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pytunknown_decl>s(t__name__t
__module__RR
RRRRRRRRR R!(((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyR	s											tEventCollectorExtracBseZd�ZRS(cCs0tj|||�|jd|j�f�dS(Nt
starttag_text(RRRtget_starttag_text(RRR((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyRDs(R"R#R(((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyR$BstTestCaseBasecBs&eZed�Zd�Zd�ZRS(cCs{|�}x|D]}|j|�qW|j�|j�}||krw|jdtj|�dtj|��ndS(Ns8received events did not match expected events
Expected:
s
Received:
(tfeedtcloseR
tfailtpprinttpformat(Rtsourcetexpected_eventst	collectortparsertsR((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt
_run_checkKs	

cCs|j||t�dS(N(R2R$(RR-R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt_run_check_extraVscCs#|d�}|jtj|�dS(NcSs'tj�}|j|�|j�dS(N(RR(R)(R-R0((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pytparseZs
(tassertRaisesRtHTMLParseError(RR-R4((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt_parse_errorYs(R"R#RR2R3R7(((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyR'Is	tHTMLParserTestCasecBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZRS(cCs*|jddg�|jddg�dS(Ns<?processing instruction>Rsprocessing instructions<?processing instruction ?>sprocessing instruction ?(Rsprocessing instruction(Rsprocessing instruction ?(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt test_processing_instruction_onlycs	
	cCs_|jddddddgfdddddddddgfd d!d"d#d$d%d&g�dS('Ns�
<!DOCTYPE html PUBLIC 'foo'>
<HTML>&entity;&#32;
<!--comment1a
-></foo><bar>&lt;<?pi?></foo<bar
comment1b-->
<Img sRc='Bar' isMAP>sample
text
&#x201C;
<!--comment2a-- --comment2b-->
</Html>
Rs
RsDOCTYPE html PUBLIC 'foo'RthtmlRtentityRt32Rs4comment1a
-></foo><bar>&lt;<?pi?></foo<bar
comment1btimgtsrctBartismapssample
text
tx201Cscomment2a-- --comment2bR(Rs
(RsDOCTYPE html PUBLIC 'foo'(Rs
(RR;(RR<(Rs
(Rs4comment1a
-></foo><bar>&lt;<?pi?></foo<bar
comment1b(Rs
(R>R?(R@N(Rssample
text
(RRA(Rs
(Rscomment2a-- --comment2b(Rs
(RR:(Rs
(R2R(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_simple_htmlks&cCs|jdddg�dS(Ns&entityref fooRRs foo(RR(Rs foo(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_unclosed_entityref�s	cCs2|jdddgfddgfddg�dS(Ns<a><b></a></b>RtatbR(RRD(RRE(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_bad_nesting�s
	cCs|jddg�dS(Ns#this text & contains & ampersands &R(Rs#this text & contains & ampersands &(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_bare_ampersands�s	cCs|jddg�dS(Ns.this < text > contains < bare>pointy< bracketsR(Rs.this < text > contains < bare>pointy< brackets(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_bare_pointy_brackets�s	cCs|jddg�dS(Ns"<!spacer type="block" height="25">Rsspacer type="block" height="25"(Rsspacer type="block" height="25"(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_illegal_declarations�s	cCsB|jddddgfg�|jdddd	gfg�dS(
Ns	<a b='<'>RRDREt<s	<a b='>'>t>(RERJ(RERK(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_starttag_end_boundary�scCs+ddd*gfg}|jdg|�|jddg|�|jdd	g|�|jd
dg|�|jdd
g|�|jddg|�ddd+gfg}|jdg|�|jddg|�|jddg|�|jd
dg|�|jdd
g|�|jddg|�d,g}|jddg|�|jddg|�|jddg|�|jddg|�|jdd g|�|jd!d"g|�|jd#d$g|�|jd%d&g|�|jd'd(g|�|jd)dg|�|jddg|�dS(-NRRDRERJs	<a b='<'>s<a sb='<'>s<a bs='<'>s<a b=s'<'>s<a b='<s'>s<a b='<'RKs	<a b='>'>sb='>'>s='>'>s'>'>s<a b='>s<a b='>'Rtabcts
<!--abc-->s	!--abc-->s<!s--abc-->s<!-s-abc-->s<!--sabc-->s<!--asbc-->s<!--absc-->s<!--abcs-->s<!--abc-s->s	<!--abc--(RERJ(RERK(RRM(R2(Rtoutput((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_buffer_artefacts�s4	cCsz|jdg�|jddg�|jddg�|jddg�|jdd	d
gfg�|jddg�|jd
dg�|jdd g�|jdd!g�|jdd"g�|jdd#g�|jdd$g�|jdd	dgfg�|jdd	dgfg�|jdddgfg�|jdd	dgfg�|jdddgfg�dS(%Ns</>s</$>Rt$s</Rs</as<a<a>Rsa<as</a<a>Rs<!s<as<a foo='bar's<a foo='bars
<a foo='>'s	<a foo='>s<a$>sa$s<a$b>sa$bs<a$b/>Rs<a$b  >s<a$b  />(RRQ(Rs</(Rs</a(Rsa<a(Rs<!(Rs<a(Rs<a foo='bar'(Rs<a foo='bar(Rs
<a foo='>'(Rs	<a foo='>(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_starttag_junk_chars�s"c
CsZddddddddd	d
g
}x/|D]'}|jd|dd
|fg�q+WdS(NtHTMLsOHTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"s[HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"sbhtml PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"sfhtml PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"sYmath PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd"s�html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"sWsvg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"s'html PUBLIC "-//IETF//DTD HTML 2.0//EN"s,html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"s
<!DOCTYPE %s>RsDOCTYPE (R2(Rtdtdstdtd((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_valid_doctypes�s	

cCs%|jddddgfg�d}ddddddddd d!gfg}|j||�d}ddd"d#d$gfddd%d&d'gfg}|j||�d}ddgfddgfddgfddgfddgfddgfddgfddgfg}|j||�dS((Ns<a foo="var"/>RRDtfootvarsj<img width=902 height=250px src="/sites/default/files/images/homepage/foo.jpg" /*what am I doing here*/ />R=twidtht902theightt250pxR>s,/sites/default/files/images/homepage/foo.jpgs*whattamtitdoingshere*s9<a / /foo/ / /=/ / /bar/ / /><a / /foo/ / /=/ / /bar/ / >t=tbarRsD<meta><meta / ><meta // ><meta / / ><meta/><meta /><meta //><meta//>tmeta(RWRX(RYRZ(R[R\(R>s,/sites/default/files/images/homepage/foo.jpg(s*whatN(R]N(R^N(R_N(shere*N(RWN(R`N(RaN(RWN(R`N(RaN(R2R(RR:texpected((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_slashes_in_starttag�s$	cCs|jddg�dS(Ns<!DOCTYPE foo $ >RsDOCTYPE foo $ (RsDOCTYPE foo $ (R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_declaration_junk_charsscCsm|jdddgfg�|jdddgfdg�|jdddgfdddgfd
g�dS(Ns<p/>Rtps<p></p>RRs<p><img src='foo' /></p>R=R>RW(RRf(R>RW(RRf(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_startendtags		
	cCs�d}ddgfd
ddgfdddgfdddgfd
ddgfdddgfddgfg}|j||�dS(Nsn<br></label</p><br></div end tmAd-leaderBoard><br></<h4><br></li class="unit"><br></li
						</ul><br></><br>RtbrRslabel<tdivRs<h4tli(Rslabel<(RRi(Rs<h4(RRj(RRj(R2(RR:Rc((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_invalid_end_tags'scCs5d}ddgfdd	d
g}|j||�dS(Ns(<b>This</b attr=">"> confuses the parserRRERtThisRs"> confuses the parser(RRl(RRE(Rs"> confuses the parser(R2(RR:Rc((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_broken_invalid_end_tagAs	cCs5d}|j|ddd	d
gfd|fg�dS(Ns <foo:bar   
   one="1"	two=2   >Rsfoo:bartonet1ttwot2R%(RnRo(RpRq(R3(RR1((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_get_starttag_textMs	cCs�ddddddddd	d
dg}dd
ddddg}xq|D]i}x`|D]X}|j�}djd|d|�}|j|d|gfd|fd|fg�qSWqFWdS(Ns*<!-- not a comment --> &not-an-entity-ref;s<not a='start tag'>s<a href="" /> <p> <span></span>sfoo = "</scr" + "ipt>";sfoo = "</SCRIPT" + ">";sfoo = <
/script> s*<!-- document.write("</scr" + "ipt>"); -->s�
//<![CDATA[
document.write('<s'+'cript type="text/javascript" src="http://www.example.org/r='+new Date().getTime()+'"><\/s'+'cript>');
//]]>s 
<!-- //
var foo = 3.14;
// -->
sfoo = "</sty" + "le>";u<!-- ☃ -->tscripttstyletSCRIPTtSTYLEtScripttStyleu <{element}>{content}</{element}>telementtcontentRRR(tlowertformatR2(RtcontentstelementsRzRyt
element_lowerR1((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_cdata_contentSs(	

		cCs�dtfd��Y}d}xfdddddd	gD]L}d
jd|d|�}|j|d
dgfd|fdgd|�q5WdS(Nt	CollectorcBseZd�ZRS(cSs|jS(N(R(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyR
xs(R"R#R
(((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyR�wss�<!-- not a comment --> &not-an-entity-ref;
                  <a href="" /> </p><p> &amp; <span></span></style>
                  '</script' + '>' </html> </head> </scripter>!s scriptsscript s script s
scriptsscript
s
script
u<script>{content}</{element}>RyRzRRsRRR/(RRs(RR|R2(RR�RzRyR1((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_cdata_with_closing_tagsrs			cCsK|jdddgfd	d
g�|jdgddgfddg�dS(
Ns
<p>&#bad;</p>RRfRs&#bad;Rs<div>&#bad;</div>Ri(Rs&#bad;(RRf(Rs&#bad;(RRi(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_malformatted_charref�s	
cCsBtj�}|j|jd�d�|j|jd�d�dS(Ns&#bad;s&#0038;t&(RtassertEqualtunescape(RR0((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_unescape_function�s(R"R#R9RBRCRFRGRHRIRLRPRRRVRdReRgRkRmRrR�R�R�R�(((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyR8as*		 																		
tAttributesTestCasecBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�ZRS(cCsbdddd
ddgfg}|jd|�|jd	|�|jd
|�|jd|�dS(NRRDREtvtctdtes<a b='v' c="v" d=v e>s<a  b = 'v' c = "v" d = v e>s<a
b
=
'v'
c
=
"v"
d
=
v
e>s<a	b	=	'v'	c	=	"v"	d	=	v	e>(RER�(R�R�(R�R�(R�N(RR2(RRO((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_attr_syntax�s
cCs�|jddddddgfg�|jd
ddddgfg�|jddd
dgfg�|jddddgfg�dS(Ns'<a b='xxx
	xxx' c="yyy	
yyy" d='	xyz
'>RRDREsxxx
	xxxR�syyy	
yyyR�s	xyz
s
<a b='' c="">RNs<e a=rgb(1,2,3)>R�s
rgb(1,2,3)s<a href=mailto:xyz@example.com>threfsmailto:xyz@example.com(REsxxx
	xxx(R�syyy	
yyy(R�s	xyz
(RERN(R�RN(RDs
rgb(1,2,3)(R�smailto:xyz@example.com(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_attr_values�s				cCsj|jdddddgfg�|jddd	ddgfg�|jddd	ddgfg�dS(Nu!<img src=/foo/bar.png alt=中文>RR=R>s/foo/bar.pngtaltu中文u+<a title='テスト' href='テスト.html'>RDttitleu	テストR�uテスト.htmlu+<a title="テスト" href="テスト.html">(R>s/foo/bar.png(R�u中文(R�u	テスト(R�uテスト.html(R�u	テスト(R�uテスト.html(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_attr_nonascii�s			cCs#|jddddgfg�dS(Ns!<a b='&amp;&gt;&lt;&quot;&apos;'>RRDREs&><"'(REs&><"'(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_attr_entity_replacement�scCsf|jddddddgfg�|jddddgfdd
dgfdddgfg�dS(Ns<a a.b='v' c:d=v e-f=v>RRDsa.bR�sc:dse-fs<a $><b $=%><c \=/>RQREt%R�s\t/(sa.bR�(sc:dR�(se-fR�(RQN(RQR�(s\R�(R2R(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_attr_funky_names�scCs#|jddddgfg�dS(Ns0<html foo='&euro;&amp;&#97;&#x61;&unsupported;'>RR:RWu€&aa&unsupported;(RWu€&aa&unsupported;(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_entityrefs_in_attributes�scCs�x�ddddgD]o}|jd|dddgfg�|jd	|dddgfg�|jd
|ddd
gfg�qWdS(NR�s&amp;s&#38;s&#x26;s
<a href="%s">RRDR�s
<a href='%s'>s<a href=%s>(R�R�(R�R�(R�R�(R2(RR;((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt test_entities_in_attribute_value�s


c
Cstd}dddgfdddddgfdddddgfdddddgfddg}|j||�dS(Ns�<a href=test'style='color:red;bad1'>test - bad1</a><a href=test'+style='color:red;ba2'>test - bad2</a><a href=test'&nbsp;style='color:red;bad3'>test - bad3</a><a href = test'&nbsp;style='color:red;bad4'  >test - bad4</a>RRDR�stest'style='color:red;bad1'Rstest - bad1Rstest'+style='color:red;ba2'stest - bad2utest' style='color:red;bad3'stest - bad3utest' style='color:red;bad4'stest - bad4(R�stest'style='color:red;bad1'(Rstest - bad1(RRD(R�stest'+style='color:red;ba2'(Rstest - bad2(RRD(R�utest' style='color:red;bad3'(Rstest - bad3(RRD(R�utest' style='color:red;bad4'(Rstest - bad4(RRD(R2(RR:Rc((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_malformed_attributes�scCsf|jdddgfdddd
gfdg�|jd
ddgfddddgfdg�dS(Ns<x><y z=""o"" /></x>RtxRtytzRNso""Rs<x><y z="""" /></x>s""(R�RN(so""N(RR�(R�RN(s""N(RR�(R2R(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt"test_malformed_adjacent_attributes�s	
	cCsH|jdddd
dgfg�|jdddddgfg�dS(Ns<a width="100%"cellspacing=0>RRDRYs100%tcellspacingt0s<a id="foo"class="bar">tidRWtclassRa(RYs100%(R�R�(R�RW(R�Ra(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_adjacent_attributess		cCs#|jddddgfg�dS(Ns<a v=>RRDR�RN(R�RN(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_missing_attribute_values	cCs#|jddddgfg�dS(Ns-<a href=javascript:popup('/popup/help.html')>RRDR�s$javascript:popup('/popup/help.html')(R�s$javascript:popup('/popup/help.html')(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_javascript_attribute_values	cCs)|jdddd	gfd
dg�dS(Ns-<a href='http://www.example.org/">;'>spam</a>RRDR�shttp://www.example.org/">;RtspamR(R�shttp://www.example.org/">;(RR�(RRD(R2(R((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_end_tag_in_attribute_values		cCs5d}d
ddd
dddg}|j||�dS(Ns�<!-- I'm a valid comment --><!--me too!--><!------><!----><!----I have many hyphens----><!-- I have a > in the middle --><!-- and I have -- in the middle! -->Rs I'm a valid comment sme too!s--RNs--I have many hyphens--s I have a > in the middle s and I have -- in the middle! (Rs I'm a valid comment (Rsme too!(Rs--(RRN(Rs--I have many hyphens--(Rs I have a > in the middle (Rs and I have -- in the middle! (R2(RR:Rc((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt
test_commentss	cCs2d}d	d
ddd
dg}|j||�dS(Ns�<! not really a comment ><! not a comment either --><! -- close enough --><!><!<-- this was an empty comment><!!! another bogus comment !!!>Rs not really a comment s not a comment either --s -- close enough --RNs<-- this was an empty comments!! another bogus comment !!!(Rs not really a comment (Rs not a comment either --(Rs -- close enough --(RRN(Rs<-- this was an empty comment(Rs!! another bogus comment !!!(R2(RR:Rc((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_broken_comments,s	cCs)d}dddg}|j||�dS(	Nss<!--[if IE & !(lte IE 8)]>aren't<![endif]--><!--[if IE 8]>condcoms<![endif]--><!--[if lte IE 7]>pretty?<![endif]-->Rs%[if IE & !(lte IE 8)]>aren't<![endif]sf IE 8]>condcoms<![endif]s[if lte IE 7]>pretty?<![endif](Rs%[if IE & !(lte IE 8)]>aren't<![endif](Rsf IE 8]>condcoms<![endif](Rs[if lte IE 7]>pretty?<![endif](R2(RR:Rc((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt
test_condcoms<s
	cCs�d}dddddd	dgfdddd
dgfdd ddgfd!d"d#d$dd
d%gfd&g}|j||�dS('Ns�<![if !(IE)]>broken condcom<![endif]><![if ! IE]><link href="favicon.tiff"/><![endif]><![if !IE 6]><img src="firefox.png" /><![endif]><![if !ie 6]><b>foo</b><![endif]><![if (!IE)|(lt IE 9)]><img src="mammoth.bmp" /><![endif]>sunknown declsif !(IE)Rsbroken condcomtendifsif ! IERtlinkR�sfavicon.tiffsif !IE 6R=R>sfirefox.pngsif !ie 6RRERWRsif (!IE)|(lt IE 9)smammoth.bmp(sunknown declsif !(IE)(Rsbroken condcom(sunknown declR�(sunknown declsif ! IE(R�sfavicon.tiff(sunknown declR�(sunknown declsif !IE 6(R>sfirefox.png(sunknown declR�(sunknown declsif !ie 6(RRW(RRE(sunknown declR�(sunknown declsif (!IE)|(lt IE 9)(R>smammoth.bmp(sunknown declR�(R2(RR:Rc((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyttest_broken_condcomsEs&	(R"R#R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�(((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyR��s"						
		
											cCstjtt�dS(N(Rtrun_unittestR8R�(((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt	test_maingst__main__(t__doc__RR+tunittestttestRRR$tTestCaseR'R8R�R�R"(((s;/usr/local/python-2.7/lib/python2.7/test/test_htmlparser.pyt<module>s9�;�	
© 2025 GrazzMean