9c2004bc4d846d7128c397735299d4d297d56dce
[platform/upstream/python-lxml.git] / doc / html / api / lxml.html.usedoctest-pysrc.html
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">
5 <head>
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>
9 </head>
10
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
12       alink="#204080">
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15        bgcolor="#a0c0ff" cellspacing="0">
16   <tr valign="middle">
17   <!-- Home link -->
18       <th>&nbsp;&nbsp;&nbsp;<a
19         href="lxml-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
20
21   <!-- Tree link -->
22       <th>&nbsp;&nbsp;&nbsp;<a
23         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
24
25   <!-- Index link -->
26       <th>&nbsp;&nbsp;&nbsp;<a
27         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
28
29   <!-- Help link -->
30       <th>&nbsp;&nbsp;&nbsp;<a
31         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
32
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>
38           </tr></table></th>
39   </tr>
40 </table>
41 <table width="100%" cellpadding="0" cellspacing="0">
42   <tr valign="top">
43     <td width="100%">
44       <span class="breadcrumbs">
45         <a href="lxml-module.html">Package&nbsp;lxml</a> ::
46         <a href="lxml.html-module.html">Package&nbsp;html</a> ::
47         Module&nbsp;usedoctest
48       </span>
49     </td>
50     <td>
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&nbsp;private</a>]</span></td></tr>
55         <tr><td align="right"><span class="options"
56             >[<a href="frames.html" target="_top">frames</a
57             >]&nbsp;|&nbsp;<a href="lxml.html.usedoctest-pysrc.html"
58             target="_top">no&nbsp;frames</a>]</span></td></tr>
59       </table>
60     </td>
61   </tr>
62 </table>
63 <h1 class="epydoc">Source Code for <a href="lxml.html.usedoctest-module.html">Module lxml.html.usedoctest</a></h1>
64 <pre class="py-src">
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">   &gt;&gt;&gt; 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">   &gt;&gt;&gt; # 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">
82 <!--
83 expandto(location.href);
84 // -->
85 </script>
86 </pre>
87 <br />
88 <!-- ==================== NAVIGATION BAR ==================== -->
89 <table class="navbar" border="0" width="100%" cellpadding="0"
90        bgcolor="#a0c0ff" cellspacing="0">
91   <tr valign="middle">
92   <!-- Home link -->
93       <th>&nbsp;&nbsp;&nbsp;<a
94         href="lxml-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
95
96   <!-- Tree link -->
97       <th>&nbsp;&nbsp;&nbsp;<a
98         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
99
100   <!-- Index link -->
101       <th>&nbsp;&nbsp;&nbsp;<a
102         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
103
104   <!-- Help link -->
105       <th>&nbsp;&nbsp;&nbsp;<a
106         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
107
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>
113           </tr></table></th>
114   </tr>
115 </table>
116 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
117   <tr>
118     <td align="left" class="footer">
119     Generated by Epydoc 3.0.1 on Tue Jul 31 10:14:23 2012
120     </td>
121     <td align="right" class="footer">
122       <a target="mainFrame" href="http://epydoc.sourceforge.net"
123         >http://epydoc.sourceforge.net</a>
124     </td>
125   </tr>
126 </table>
127
128 <script type="text/javascript">
129   <!--
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.
134   checkCookie();
135   // -->
136 </script>
137 </body>
138 </html>