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_io.ElementTreeIOTestCase</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 <a href="lxml.tests.test_io-module.html">Module test_io</a> ::
48 Class ElementTreeIOTestCase
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 private</a>]</span></td></tr>
56 <tr><td align="right"><span class="options"
57 >[<a href="frames.html" target="_top">frames</a
58 >] | <a href="lxml.tests.test_io.ElementTreeIOTestCase-class.html"
59 target="_top">no frames</a>]</span></td></tr>
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 code</a></span></p>
66 <pre class="base-tree">
69 unittest.case.TestCase --+
71 <a href="lxml.tests.common_imports.HelperTestCase-class.html">common_imports.HelperTestCase</a> --+
73 <a href="lxml.tests.test_io._IOTestCaseBase-class.html" onclick="show_private();">_IOTestCaseBase</a> --+
75 <strong class="uidshort">ElementTreeIOTestCase</strong>
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%">
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>
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>
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%">
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>
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>
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>
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>
154 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
155 <code>__call__</code>,
157 <code>__hash__</code>,
158 <code>__init__</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>,
201 <code>defaultTestResult</code>,
202 <code>doCleanups</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>,
213 <code>shortDescription</code>,
214 <code>skipTest</code>
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>
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>
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%">
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>
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>
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%">
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>
282 <td width="15%" align="right" valign="top" class="summary">
283 <span class="summary-type"> </span>
284 </td><td class="summary">
285 <a href="xml.etree.ElementTree-module.html" class="summary-name">etree</a><br />
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>,
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>
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%">
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>
320 <td colspan="2" class="summary">
321 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
322 <code>__class__</code>
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%">
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>
347 <table class="details" border="1" cellpadding="3"
348 cellspacing="0" width="100%" bgcolor="white">
350 <h3 class="epydoc">etree</h3>
356 <dd><a href="xml.etree.ElementTree-module.html">xml.etree.ElementTree</a></dd>
361 <!-- ==================== NAVIGATION BAR ==================== -->
362 <table class="navbar" border="0" width="100%" cellpadding="0"
363 bgcolor="#a0c0ff" cellspacing="0">
366 <th> <a
367 href="lxml-module.html">Home</a> </th>
370 <th> <a
371 href="module-tree.html">Trees</a> </th>
374 <th> <a
375 href="identifier-index.html">Indices</a> </th>
378 <th> <a
379 href="help.html">Help</a> </th>
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>
389 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
391 <td align="left" class="footer">
392 Generated by Epydoc 3.0.1
393 on Wed Jan 29 12:26:21 2020
395 <td align="right" class="footer">
396 <a target="mainFrame" href="http://epydoc.sourceforge.net"
397 >http://epydoc.sourceforge.net</a>
402 <script type="text/javascript">
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.