1 <?xml version="1.0" encoding="ascii"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <title>lxml.html.usedoctest</title>
7 <link rel="stylesheet" href="epydoc.css" type="text/css" />
8 <script type="text/javascript" src="epydoc.js"></script>
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15 bgcolor="#a0c0ff" cellspacing="0">
18 <th> <a
19 href="lxml-module.html">Home</a> </th>
22 <th> <a
23 href="module-tree.html">Trees</a> </th>
26 <th> <a
27 href="identifier-index.html">Indices</a> </th>
30 <th> <a
31 href="help.html">Help</a> </th>
33 <!-- Project homepage -->
34 <th class="navbar" align="right" width="100%">
35 <table border="0" cellpadding="0" cellspacing="0">
36 <tr><th class="navbar" align="center"
37 ><a class="navbar" target="_top" href="/">lxml API</a></th>
41 <table width="100%" cellpadding="0" cellspacing="0">
44 <span class="breadcrumbs">
45 <a href="lxml-module.html">Package lxml</a> ::
46 <a href="lxml.html-module.html">Package html</a> ::
47 Module usedoctest
51 <table cellpadding="0" cellspacing="0">
52 <!-- hide/show private -->
53 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
54 onclick="toggle_private();">hide private</a>]</span></td></tr>
55 <tr><td align="right"><span class="options"
56 >[<a href="frames.html" target="_top">frames</a
57 >] | <a href="lxml.html.usedoctest-pysrc.html"
58 target="_top">no frames</a>]</span></td></tr>
63 <h1 class="epydoc">Source Code for <a href="lxml.html.usedoctest-module.html">Module lxml.html.usedoctest</a></h1>
65 <a name="L1"></a><tt class="py-lineno"> 1</tt> <tt class="py-line"><tt class="py-docstring">"""Doctest module for HTML comparison.</tt> </tt>
66 <a name="L2"></a><tt class="py-lineno"> 2</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
67 <a name="L3"></a><tt class="py-lineno"> 3</tt> <tt class="py-line"><tt class="py-docstring">Usage::</tt> </tt>
68 <a name="L4"></a><tt class="py-lineno"> 4</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
69 <a name="L5"></a><tt class="py-lineno"> 5</tt> <tt class="py-line"><tt class="py-docstring"> >>> import lxml.html.usedoctest</tt> </tt>
70 <a name="L6"></a><tt class="py-lineno"> 6</tt> <tt class="py-line"><tt class="py-docstring"> >>> # now do your HTML doctests ...</tt> </tt>
71 <a name="L7"></a><tt class="py-lineno"> 7</tt> <tt class="py-line"><tt class="py-docstring"></tt> </tt>
72 <a name="L8"></a><tt class="py-lineno"> 8</tt> <tt class="py-line"><tt class="py-docstring">See `lxml.doctestcompare`.</tt> </tt>
73 <a name="L9"></a><tt class="py-lineno"> 9</tt> <tt class="py-line"><tt class="py-docstring">"""</tt> </tt>
74 <a name="L10"></a><tt class="py-lineno">10</tt> <tt class="py-line"> </tt>
75 <a name="L11"></a><tt class="py-lineno">11</tt> <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package lxml=lxml-module.html"><a title="lxml" class="py-name" href="#" onclick="return doclink('link-0', 'lxml', 'link-0');">lxml</a></tt> <tt class="py-keyword">import</tt> <tt id="link-1" class="py-name" targets="Module lxml.doctestcompare=lxml.doctestcompare-module.html"><a title="lxml.doctestcompare" class="py-name" href="#" onclick="return doclink('link-1', 'doctestcompare', 'link-1');">doctestcompare</a></tt> </tt>
76 <a name="L12"></a><tt class="py-lineno">12</tt> <tt class="py-line"> </tt>
77 <a name="L13"></a><tt class="py-lineno">13</tt> <tt class="py-line"><tt id="link-2" class="py-name"><a title="lxml.doctestcompare" class="py-name" href="#" onclick="return doclink('link-2', 'doctestcompare', 'link-1');">doctestcompare</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Function lxml.doctestcompare.temp_install()=lxml.doctestcompare-module.html#temp_install"><a title="lxml.doctestcompare.temp_install" class="py-name" href="#" onclick="return doclink('link-3', 'temp_install', 'link-3');">temp_install</a></tt><tt class="py-op">(</tt><tt id="link-4" class="py-name" targets="Package lxml.html=lxml.html-module.html,Method lxml.html.diff.href_token.html()=lxml.html.diff.href_token-class.html#html,Method lxml.html.diff.tag_token.html()=lxml.html.diff.tag_token-class.html#html,Method lxml.html.diff.token.html()=lxml.html.diff.token-class.html#html"><a title="lxml.html
78 lxml.html.diff.href_token.html
79 lxml.html.diff.tag_token.html
80 lxml.html.diff.token.html" class="py-name" href="#" onclick="return doclink('link-4', 'html', 'link-4');">html</a></tt><tt class="py-op">=</tt><tt class="py-name">True</tt><tt class="py-op">,</tt> <tt class="py-name">del_module</tt><tt class="py-op">=</tt><tt class="py-name">__name__</tt><tt class="py-op">)</tt> </tt>
81 <a name="L14"></a><tt class="py-lineno">14</tt> <tt class="py-line"> </tt><script type="text/javascript">
83 expandto(location.href);
88 <!-- ==================== NAVIGATION BAR ==================== -->
89 <table class="navbar" border="0" width="100%" cellpadding="0"
90 bgcolor="#a0c0ff" cellspacing="0">
93 <th> <a
94 href="lxml-module.html">Home</a> </th>
97 <th> <a
98 href="module-tree.html">Trees</a> </th>
101 <th> <a
102 href="identifier-index.html">Indices</a> </th>
105 <th> <a
106 href="help.html">Help</a> </th>
108 <!-- Project homepage -->
109 <th class="navbar" align="right" width="100%">
110 <table border="0" cellpadding="0" cellspacing="0">
111 <tr><th class="navbar" align="center"
112 ><a class="navbar" target="_top" href="/">lxml API</a></th>
116 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
118 <td align="left" class="footer">
119 Generated by Epydoc 3.0.1 on Tue Jul 31 10:14:23 2012
121 <td align="right" class="footer">
122 <a target="mainFrame" href="http://epydoc.sourceforge.net"
123 >http://epydoc.sourceforge.net</a>
128 <script type="text/javascript">
130 // Private objects are initially displayed (because if
131 // javascript is turned off then we want them to be
132 // visible); but by default, we want to hide them. So hide
133 // them unless we have a cookie that says to show them.