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.tests.test_elementtree</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.tests-module.html">Package tests</a> ::
47 Module test_elementtree
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.tests.test_elementtree-module.html"
58 target="_top">no frames</a>]</span></td></tr>
63 <!-- ==================== MODULE DESCRIPTION ==================== -->
64 <h1 class="epydoc">Module test_elementtree</h1><p class="nomargin-top"><span class="codelink"><a href="lxml.tests.test_elementtree-pysrc.html">source code</a></span></p>
65 <p>Tests for the ElementTree API</p>
66 <p>Only test cases that apply equally well to etree and ElementTree
67 belong here. Note that there is a second test module called test_io.py
68 for IO related test cases.</p>
70 <!-- ==================== CLASSES ==================== -->
71 <a name="section-Classes"></a>
72 <table class="summary" border="1" cellpadding="3"
73 cellspacing="0" width="100%" bgcolor="white">
74 <tr bgcolor="#70b0f0" class="table-header">
75 <td colspan="2" class="table-header">
76 <table border="0" cellpadding="0" cellspacing="0" width="100%">
78 <td align="left"><span class="table-header">Classes</span></td>
79 <td align="right" valign="top"
80 ><span class="options">[<a href="#section-Classes"
81 class="privatelink" onclick="toggle_private();"
82 >hide private</a>]</span></td>
88 <td width="15%" align="right" valign="top" class="summary">
89 <span class="summary-type"> </span>
90 </td><td class="summary">
91 <a href="lxml.tests.test_elementtree._ETreeTestCaseBase-class.html" class="summary-name" onclick="show_private();">_ETreeTestCaseBase</a>
95 <td width="15%" align="right" valign="top" class="summary">
96 <span class="summary-type"> </span>
97 </td><td class="summary">
98 <a href="lxml.tests.test_elementtree._ElementSlicingTest-class.html" class="summary-name" onclick="show_private();">_ElementSlicingTest</a>
102 <td width="15%" align="right" valign="top" class="summary">
103 <span class="summary-type"> </span>
104 </td><td class="summary">
105 <a href="lxml.tests.test_elementtree._XMLPullParserTest-class.html" class="summary-name" onclick="show_private();">_XMLPullParserTest</a>
109 <td width="15%" align="right" valign="top" class="summary">
110 <span class="summary-type"> </span>
111 </td><td class="summary">
112 <a href="lxml.tests.test_elementtree._C14NTest-class.html" class="summary-name" onclick="show_private();">_C14NTest</a>
116 <td width="15%" align="right" valign="top" class="summary">
117 <span class="summary-type"> </span>
118 </td><td class="summary">
119 <a href="lxml.tests.test_elementtree.ETreeTestCase-class.html" class="summary-name">ETreeTestCase</a>
123 <td width="15%" align="right" valign="top" class="summary">
124 <span class="summary-type"> </span>
125 </td><td class="summary">
126 <a href="lxml.tests.test_elementtree.ETreePullTestCase-class.html" class="summary-name">ETreePullTestCase</a>
130 <td width="15%" align="right" valign="top" class="summary">
131 <span class="summary-type"> </span>
132 </td><td class="summary">
133 <a href="lxml.tests.test_elementtree.ETreeElementSlicingTest-class.html" class="summary-name">ETreeElementSlicingTest</a>
137 <td width="15%" align="right" valign="top" class="summary">
138 <span class="summary-type"> </span>
139 </td><td class="summary">
140 <a href="lxml.tests.test_elementtree.ETreeC14NTest-class.html" class="summary-name">ETreeC14NTest</a>
144 <td width="15%" align="right" valign="top" class="summary">
145 <span class="summary-type"> </span>
146 </td><td class="summary">
147 <a href="lxml.tests.test_elementtree.ETreeC14N2WriteTest-class.html" class="summary-name">ETreeC14N2WriteTest</a>
151 <td width="15%" align="right" valign="top" class="summary">
152 <span class="summary-type"> </span>
153 </td><td class="summary">
154 <a href="lxml.tests.test_elementtree.ETreeC14N2TostringTest-class.html" class="summary-name">ETreeC14N2TostringTest</a>
158 <td width="15%" align="right" valign="top" class="summary">
159 <span class="summary-type"> </span>
160 </td><td class="summary">
161 <a href="lxml.tests.test_elementtree.ElementTreeTestCase-class.html" class="summary-name">ElementTreeTestCase</a>
165 <td width="15%" align="right" valign="top" class="summary">
166 <span class="summary-type"> </span>
167 </td><td class="summary">
168 <a href="lxml.tests.test_elementtree.ElementTreeElementSlicingTest-class.html" class="summary-name">ElementTreeElementSlicingTest</a>
172 <td width="15%" align="right" valign="top" class="summary">
173 <span class="summary-type"> </span>
174 </td><td class="summary">
175 <a href="lxml.tests.test_elementtree.CElementTreeTestCase-class.html" class="summary-name">CElementTreeTestCase</a>
179 <td width="15%" align="right" valign="top" class="summary">
180 <span class="summary-type"> </span>
181 </td><td class="summary">
182 <a href="lxml.tests.test_elementtree.CElementTreeElementSlicingTest-class.html" class="summary-name">CElementTreeElementSlicingTest</a>
186 <!-- ==================== FUNCTIONS ==================== -->
187 <a name="section-Functions"></a>
188 <table class="summary" border="1" cellpadding="3"
189 cellspacing="0" width="100%" bgcolor="white">
190 <tr bgcolor="#70b0f0" class="table-header">
191 <td colspan="2" class="table-header">
192 <table border="0" cellpadding="0" cellspacing="0" width="100%">
194 <td align="left"><span class="table-header">Functions</span></td>
195 <td align="right" valign="top"
196 ><span class="options">[<a href="#section-Functions"
197 class="privatelink" onclick="toggle_private();"
198 >hide private</a>]</span></td>
204 <td width="15%" align="right" valign="top" class="summary">
205 <span class="summary-type"> </span>
206 </td><td class="summary">
207 <table width="100%" cellpadding="0" cellspacing="0" border="0">
209 <td><span class="summary-sig"><a name="et_needs_pyversion"></a><span class="summary-sig-name">et_needs_pyversion</span>(<span class="summary-sig-arg">*version</span>)</span></td>
210 <td align="right" valign="top">
211 <span class="codelink"><a href="lxml.tests.test_elementtree-pysrc.html#et_needs_pyversion">source code</a></span>
220 <td width="15%" align="right" valign="top" class="summary">
221 <span class="summary-type"> </span>
222 </td><td class="summary">
223 <table width="100%" cellpadding="0" cellspacing="0" border="0">
225 <td><span class="summary-sig"><a name="test_suite"></a><span class="summary-sig-name">test_suite</span>()</span></td>
226 <td align="right" valign="top">
227 <span class="codelink"><a href="lxml.tests.test_elementtree-pysrc.html#test_suite">source code</a></span>
236 <!-- ==================== VARIABLES ==================== -->
237 <a name="section-Variables"></a>
238 <table class="summary" border="1" cellpadding="3"
239 cellspacing="0" width="100%" bgcolor="white">
240 <tr bgcolor="#70b0f0" class="table-header">
241 <td colspan="2" class="table-header">
242 <table border="0" cellpadding="0" cellspacing="0" width="100%">
244 <td align="left"><span class="table-header">Variables</span></td>
245 <td align="right" valign="top"
246 ><span class="options">[<a href="#section-Variables"
247 class="privatelink" onclick="toggle_private();"
248 >hide private</a>]</span></td>
254 <td width="15%" align="right" valign="top" class="summary">
255 <span class="summary-type"> </span>
256 </td><td class="summary">
257 <a name="cElementTree"></a><span class="summary-name">cElementTree</span> = <code title="None">None</code><br />
262 <td width="15%" align="right" valign="top" class="summary">
263 <span class="summary-type"> </span>
264 </td><td class="summary">
265 <a name="ElementTreePullTestCase"></a><span class="summary-name">ElementTreePullTestCase</span> = <code title="None">None</code><br />
270 <td width="15%" align="right" valign="top" class="summary">
271 <span class="summary-type"> </span>
272 </td><td class="summary">
273 <a name="ElementTreeC14NTest"></a><span class="summary-name">ElementTreeC14NTest</span> = <code title="None">None</code><br />
278 <td width="15%" align="right" valign="top" class="summary">
279 <span class="summary-type"> </span>
280 </td><td class="summary">
281 <a name="__package__"></a><span class="summary-name">__package__</span> = <code title="'lxml.tests'"><code class="variable-quote">'</code><code class="variable-string">lxml.tests</code><code class="variable-quote">'</code></code>
285 <!-- ==================== NAVIGATION BAR ==================== -->
286 <table class="navbar" border="0" width="100%" cellpadding="0"
287 bgcolor="#a0c0ff" cellspacing="0">
290 <th> <a
291 href="lxml-module.html">Home</a> </th>
294 <th> <a
295 href="module-tree.html">Trees</a> </th>
298 <th> <a
299 href="identifier-index.html">Indices</a> </th>
302 <th> <a
303 href="help.html">Help</a> </th>
305 <!-- Project homepage -->
306 <th class="navbar" align="right" width="100%">
307 <table border="0" cellpadding="0" cellspacing="0">
308 <tr><th class="navbar" align="center"
309 ><a class="navbar" target="_top" href="/">lxml API</a></th>
313 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
315 <td align="left" class="footer">
316 Generated by Epydoc 3.0.1
317 on Thu Jul 9 18:29:53 2020
319 <td align="right" class="footer">
320 <a target="mainFrame" href="http://epydoc.sourceforge.net"
321 >http://epydoc.sourceforge.net</a>
326 <script type="text/javascript">
328 // Private objects are initially displayed (because if
329 // javascript is turned off then we want them to be
330 // visible); but by default, we want to hide them. So hide
331 // them unless we have a cookie that says to show them.