Imported Upstream version 4.5.2
[platform/upstream/python-lxml.git] / doc / html / api / lxml.tests.test_io.ElementTreeIOTestCase-class.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.tests.test_io.ElementTreeIOTestCase</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.tests-module.html">Package&nbsp;tests</a> ::
47         <a href="lxml.tests.test_io-module.html">Module&nbsp;test_io</a> ::
48         Class&nbsp;ElementTreeIOTestCase
49       </span>
50     </td>
51     <td>
52       <table cellpadding="0" cellspacing="0">
53         <!-- hide/show private -->
54         <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
55     onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
56         <tr><td align="right"><span class="options"
57             >[<a href="frames.html" target="_top">frames</a
58             >]&nbsp;|&nbsp;<a href="lxml.tests.test_io.ElementTreeIOTestCase-class.html"
59             target="_top">no&nbsp;frames</a>]</span></td></tr>
60       </table>
61     </td>
62   </tr>
63 </table>
64 <!-- ==================== CLASS DESCRIPTION ==================== -->
65 <h1 class="epydoc">Class ElementTreeIOTestCase</h1><p class="nomargin-top"><span class="codelink"><a href="lxml.tests.test_io-pysrc.html#ElementTreeIOTestCase">source&nbsp;code</a></span></p>
66 <pre class="base-tree">
67                object --+            
68                         |            
69    unittest.case.TestCase --+        
70                             |        
71 <a href="lxml.tests.common_imports.HelperTestCase-class.html">common_imports.HelperTestCase</a> --+    
72                                 |    
73                   <a href="lxml.tests.test_io._IOTestCaseBase-class.html" onclick="show_private();">_IOTestCaseBase</a> --+
74                                     |
75                                    <strong class="uidshort">ElementTreeIOTestCase</strong>
76 </pre>
77
78 <hr />
79 <!-- ==================== NESTED CLASSES ==================== -->
80 <a name="section-NestedClasses"></a>
81 <table class="summary" border="1" cellpadding="3"
82        cellspacing="0" width="100%" bgcolor="white">
83 <tr bgcolor="#70b0f0" class="table-header">
84   <td colspan="2" class="table-header">
85     <table border="0" cellpadding="0" cellspacing="0" width="100%">
86       <tr valign="top">
87         <td align="left"><span class="table-header">Nested Classes</span></td>
88         <td align="right" valign="top"
89          ><span class="options">[<a href="#section-NestedClasses"
90          class="privatelink" onclick="toggle_private();"
91          >hide private</a>]</span></td>
92       </tr>
93     </table>
94   </td>
95 </tr>
96   <tr>
97     <td colspan="2" class="summary">
98     <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
99       <code><a href="exceptions.AssertionError-class.html">failureException</a></code>
100       </p>
101     </td>
102   </tr>
103 </table>
104 <!-- ==================== INSTANCE METHODS ==================== -->
105 <a name="section-InstanceMethods"></a>
106 <table class="summary" border="1" cellpadding="3"
107        cellspacing="0" width="100%" bgcolor="white">
108 <tr bgcolor="#70b0f0" class="table-header">
109   <td colspan="2" class="table-header">
110     <table border="0" cellpadding="0" cellspacing="0" width="100%">
111       <tr valign="top">
112         <td align="left"><span class="table-header">Instance Methods</span></td>
113         <td align="right" valign="top"
114          ><span class="options">[<a href="#section-InstanceMethods"
115          class="privatelink" onclick="toggle_private();"
116          >hide private</a>]</span></td>
117       </tr>
118     </table>
119   </td>
120 </tr>
121   <tr>
122     <td colspan="2" class="summary">
123     <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html" onclick="show_private();">_IOTestCaseBase</a></code></b>:
124       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#buildNodes">buildNodes</a></code>,
125       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#getTestFilePath">getTestFilePath</a></code>,
126       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#setUp">setUp</a></code>,
127       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#tearDown">tearDown</a></code>,
128       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_filename">test_class_parse_filename</a></code>,
129       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_filename_remove_previous">test_class_parse_filename_remove_previous</a></code>,
130       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_fileobject">test_class_parse_fileobject</a></code>,
131       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_class_parse_unamed_fileobject">test_class_parse_unamed_fileobject</a></code>,
132       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_etree_parse_io_error">test_etree_parse_io_error</a></code>,
133       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_iterparse_utf16_bom">test_iterparse_utf16_bom</a></code>,
134       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_iterparse_utf8_bom">test_iterparse_utf8_bom</a></code>,
135       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_fileobject_error">test_module_parse_fileobject_error</a></code>,
136       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_fileobject_late_error">test_module_parse_fileobject_late_error</a></code>,
137       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_fileobject_type_error">test_module_parse_fileobject_type_error</a></code>,
138       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_gzipobject">test_module_parse_gzipobject</a></code>,
139       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_module_parse_large_fileobject">test_module_parse_large_fileobject</a></code>,
140       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_parse_utf8_bom">test_parse_utf8_bom</a></code>,
141       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_tree_io">test_tree_io</a></code>,
142       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_tree_io_latin1">test_tree_io_latin1</a></code>,
143       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_write_filename">test_write_filename</a></code>,
144       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_write_filename_special_percent">test_write_filename_special_percent</a></code>,
145       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_write_filename_special_plus">test_write_filename_special_plus</a></code>,
146       <code><a href="lxml.tests.test_io._IOTestCaseBase-class.html#test_write_invalid_filename">test_write_invalid_filename</a></code>
147       </p>
148     <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.tests.common_imports.HelperTestCase-class.html">common_imports.HelperTestCase</a></code></b>:
149       <code><a href="lxml.tests.common_imports.HelperTestCase-class.html#parse">parse</a></code>
150       </p>
151     <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.tests.common_imports.HelperTestCase-class.html">common_imports.HelperTestCase</a></code></b> (private):
152       <code><a href="lxml.tests.common_imports.HelperTestCase-class.html#_rootstring" onclick="show_private();">_rootstring</a></code>
153       </p></div>
154     <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
155       <code>__call__</code>,
156       <code>__eq__</code>,
157       <code>__hash__</code>,
158       <code>__init__</code>,
159       <code>__ne__</code>,
160       <code>__repr__</code>,
161       <code>__str__</code>,
162       <code>addCleanup</code>,
163       <code>addTypeEqualityFunc</code>,
164       <code>assertAlmostEqual</code>,
165       <code>assertAlmostEquals</code>,
166       <code>assertDictContainsSubset</code>,
167       <code>assertDictEqual</code>,
168       <code>assertEqual</code>,
169       <code>assertEquals</code>,
170       <code>assertFalse</code>,
171       <code>assertGreater</code>,
172       <code>assertGreaterEqual</code>,
173       <code>assertIn</code>,
174       <code>assertIs</code>,
175       <code>assertIsInstance</code>,
176       <code>assertIsNone</code>,
177       <code>assertIsNot</code>,
178       <code>assertIsNotNone</code>,
179       <code>assertItemsEqual</code>,
180       <code>assertLess</code>,
181       <code>assertLessEqual</code>,
182       <code>assertListEqual</code>,
183       <code>assertMultiLineEqual</code>,
184       <code>assertNotAlmostEqual</code>,
185       <code>assertNotAlmostEquals</code>,
186       <code>assertNotEqual</code>,
187       <code>assertNotEquals</code>,
188       <code>assertNotIn</code>,
189       <code>assertNotIsInstance</code>,
190       <code>assertNotRegexpMatches</code>,
191       <code>assertRaises</code>,
192       <code>assertRaisesRegexp</code>,
193       <code>assertRegexpMatches</code>,
194       <code>assertSequenceEqual</code>,
195       <code>assertSetEqual</code>,
196       <code>assertTrue</code>,
197       <code>assertTupleEqual</code>,
198       <code>assert_</code>,
199       <code>countTestCases</code>,
200       <code>debug</code>,
201       <code>defaultTestResult</code>,
202       <code>doCleanups</code>,
203       <code>fail</code>,
204       <code>failIf</code>,
205       <code>failIfAlmostEqual</code>,
206       <code>failIfEqual</code>,
207       <code>failUnless</code>,
208       <code>failUnlessAlmostEqual</code>,
209       <code>failUnlessEqual</code>,
210       <code>failUnlessRaises</code>,
211       <code>id</code>,
212       <code>run</code>,
213       <code>shortDescription</code>,
214       <code>skipTest</code>
215       </p>
216     <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b> (private):
217       <code>_addSkip</code>,
218       <code>_baseAssertEqual</code>,
219       <code>_deprecate</code>,
220       <code>_formatMessage</code>,
221       <code>_getAssertEqualityFunc</code>,
222       <code>_truncateMessage</code>
223       </p></div>
224     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
225       <code>__delattr__</code>,
226       <code>__format__</code>,
227       <code>__getattribute__</code>,
228       <code>__new__</code>,
229       <code>__reduce__</code>,
230       <code>__reduce_ex__</code>,
231       <code>__setattr__</code>,
232       <code>__sizeof__</code>,
233       <code>__subclasshook__</code>
234       </p>
235     </td>
236   </tr>
237 </table>
238 <!-- ==================== CLASS METHODS ==================== -->
239 <a name="section-ClassMethods"></a>
240 <table class="summary" border="1" cellpadding="3"
241        cellspacing="0" width="100%" bgcolor="white">
242 <tr bgcolor="#70b0f0" class="table-header">
243   <td colspan="2" class="table-header">
244     <table border="0" cellpadding="0" cellspacing="0" width="100%">
245       <tr valign="top">
246         <td align="left"><span class="table-header">Class Methods</span></td>
247         <td align="right" valign="top"
248          ><span class="options">[<a href="#section-ClassMethods"
249          class="privatelink" onclick="toggle_private();"
250          >hide private</a>]</span></td>
251       </tr>
252     </table>
253   </td>
254 </tr>
255   <tr>
256     <td colspan="2" class="summary">
257     <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
258       <code>setUpClass</code>,
259       <code>tearDownClass</code>
260       </p>
261     </td>
262   </tr>
263 </table>
264 <!-- ==================== CLASS VARIABLES ==================== -->
265 <a name="section-ClassVariables"></a>
266 <table class="summary" border="1" cellpadding="3"
267        cellspacing="0" width="100%" bgcolor="white">
268 <tr bgcolor="#70b0f0" class="table-header">
269   <td colspan="2" class="table-header">
270     <table border="0" cellpadding="0" cellspacing="0" width="100%">
271       <tr valign="top">
272         <td align="left"><span class="table-header">Class Variables</span></td>
273         <td align="right" valign="top"
274          ><span class="options">[<a href="#section-ClassVariables"
275          class="privatelink" onclick="toggle_private();"
276          >hide private</a>]</span></td>
277       </tr>
278     </table>
279   </td>
280 </tr>
281 <tr>
282     <td width="15%" align="right" valign="top" class="summary">
283       <span class="summary-type">&nbsp;</span>
284     </td><td class="summary">
285         <a href="xml.etree.ElementTree-module.html" class="summary-name">etree</a><br />
286       hash(x)
287     </td>
288   </tr>
289   <tr>
290     <td colspan="2" class="summary">
291     <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
292       <code>longMessage</code>,
293       <code>maxDiff</code>
294       </p>
295     <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b> (private):
296       <code>_classSetupFailed</code>,
297       <code>_diffThreshold</code>
298       </p></div>
299     </td>
300   </tr>
301 </table>
302 <!-- ==================== PROPERTIES ==================== -->
303 <a name="section-Properties"></a>
304 <table class="summary" border="1" cellpadding="3"
305        cellspacing="0" width="100%" bgcolor="white">
306 <tr bgcolor="#70b0f0" class="table-header">
307   <td colspan="2" class="table-header">
308     <table border="0" cellpadding="0" cellspacing="0" width="100%">
309       <tr valign="top">
310         <td align="left"><span class="table-header">Properties</span></td>
311         <td align="right" valign="top"
312          ><span class="options">[<a href="#section-Properties"
313          class="privatelink" onclick="toggle_private();"
314          >hide private</a>]</span></td>
315       </tr>
316     </table>
317   </td>
318 </tr>
319   <tr>
320     <td colspan="2" class="summary">
321     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
322       <code>__class__</code>
323       </p>
324     </td>
325   </tr>
326 </table>
327 <!-- ==================== CLASS VARIABLE DETAILS ==================== -->
328 <a name="section-ClassVariableDetails"></a>
329 <table class="details" border="1" cellpadding="3"
330        cellspacing="0" width="100%" bgcolor="white">
331 <tr bgcolor="#70b0f0" class="table-header">
332   <td colspan="2" class="table-header">
333     <table border="0" cellpadding="0" cellspacing="0" width="100%">
334       <tr valign="top">
335         <td align="left"><span class="table-header">Class Variable Details</span></td>
336         <td align="right" valign="top"
337          ><span class="options">[<a href="#section-ClassVariableDetails"
338          class="privatelink" onclick="toggle_private();"
339          >hide private</a>]</span></td>
340       </tr>
341     </table>
342   </td>
343 </tr>
344 </table>
345 <a name="etree"></a>
346 <div>
347 <table class="details" border="1" cellpadding="3"
348        cellspacing="0" width="100%" bgcolor="white">
349 <tr><td>
350   <h3 class="epydoc">etree</h3>
351   hash(x)
352   <dl class="fields">
353   </dl>
354   <dl class="fields">
355     <dt>Value:</dt>
356       <dd><a href="xml.etree.ElementTree-module.html">xml.etree.ElementTree</a></dd>
357   </dl>
358 </td></tr></table>
359 </div>
360 <br />
361 <!-- ==================== NAVIGATION BAR ==================== -->
362 <table class="navbar" border="0" width="100%" cellpadding="0"
363        bgcolor="#a0c0ff" cellspacing="0">
364   <tr valign="middle">
365   <!-- Home link -->
366       <th>&nbsp;&nbsp;&nbsp;<a
367         href="lxml-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
368
369   <!-- Tree link -->
370       <th>&nbsp;&nbsp;&nbsp;<a
371         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
372
373   <!-- Index link -->
374       <th>&nbsp;&nbsp;&nbsp;<a
375         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
376
377   <!-- Help link -->
378       <th>&nbsp;&nbsp;&nbsp;<a
379         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
380
381   <!-- Project homepage -->
382       <th class="navbar" align="right" width="100%">
383         <table border="0" cellpadding="0" cellspacing="0">
384           <tr><th class="navbar" align="center"
385             ><a class="navbar" target="_top" href="/">lxml API</a></th>
386           </tr></table></th>
387   </tr>
388 </table>
389 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
390   <tr>
391     <td align="left" class="footer">
392     Generated by Epydoc 3.0.1
393     on Thu Jul  9 18:29:53 2020
394     </td>
395     <td align="right" class="footer">
396       <a target="mainFrame" href="http://epydoc.sourceforge.net"
397         >http://epydoc.sourceforge.net</a>
398     </td>
399   </tr>
400 </table>
401
402 <script type="text/javascript">
403   <!--
404   // Private objects are initially displayed (because if
405   // javascript is turned off then we want them to be
406   // visible); but by default, we want to hide them.  So hide
407   // them unless we have a cookie that says to show them.
408   checkCookie();
409   // -->
410 </script>
411 </body>
412 </html>