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_etree.ETreeWriteTestCase</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_etree-module.html">Module test_etree</a> ::
48 Class ETreeWriteTestCase
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_etree.ETreeWriteTestCase-class.html"
59 target="_top">no frames</a>]</span></td></tr>
64 <!-- ==================== CLASS DESCRIPTION ==================== -->
65 <h1 class="epydoc">Class ETreeWriteTestCase</h1><p class="nomargin-top"><span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ETreeWriteTestCase">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 <strong class="uidshort">ETreeWriteTestCase</strong>
77 <!-- ==================== NESTED CLASSES ==================== -->
78 <a name="section-NestedClasses"></a>
79 <table class="summary" border="1" cellpadding="3"
80 cellspacing="0" width="100%" bgcolor="white">
81 <tr bgcolor="#70b0f0" class="table-header">
82 <td colspan="2" class="table-header">
83 <table border="0" cellpadding="0" cellspacing="0" width="100%">
85 <td align="left"><span class="table-header">Nested Classes</span></td>
86 <td align="right" valign="top"
87 ><span class="options">[<a href="#section-NestedClasses"
88 class="privatelink" onclick="toggle_private();"
89 >hide private</a>]</span></td>
95 <td colspan="2" class="summary">
96 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
97 <code><a href="exceptions.AssertionError-class.html">failureException</a></code>
102 <!-- ==================== INSTANCE METHODS ==================== -->
103 <a name="section-InstanceMethods"></a>
104 <table class="summary" border="1" cellpadding="3"
105 cellspacing="0" width="100%" bgcolor="white">
106 <tr bgcolor="#70b0f0" class="table-header">
107 <td colspan="2" class="table-header">
108 <table border="0" cellpadding="0" cellspacing="0" width="100%">
110 <td align="left"><span class="table-header">Instance Methods</span></td>
111 <td align="right" valign="top"
112 ><span class="options">[<a href="#section-InstanceMethods"
113 class="privatelink" onclick="toggle_private();"
114 >hide private</a>]</span></td>
120 <td width="15%" align="right" valign="top" class="summary">
121 <span class="summary-type"> </span>
122 </td><td class="summary">
123 <table width="100%" cellpadding="0" cellspacing="0" border="0">
125 <td><span class="summary-sig"><a name="test_write"></a><span class="summary-sig-name">test_write</span>(<span class="summary-sig-arg">self</span>)</span></td>
126 <td align="right" valign="top">
127 <span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ETreeWriteTestCase.test_write">source code</a></span>
136 <td width="15%" align="right" valign="top" class="summary">
137 <span class="summary-type"> </span>
138 </td><td class="summary">
139 <table width="100%" cellpadding="0" cellspacing="0" border="0">
141 <td><span class="summary-sig"><a name="test_write_gzip"></a><span class="summary-sig-name">test_write_gzip</span>(<span class="summary-sig-arg">self</span>)</span></td>
142 <td align="right" valign="top">
143 <span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ETreeWriteTestCase.test_write_gzip">source code</a></span>
152 <td width="15%" align="right" valign="top" class="summary">
153 <span class="summary-type"> </span>
154 </td><td class="summary">
155 <table width="100%" cellpadding="0" cellspacing="0" border="0">
157 <td><span class="summary-sig"><a name="test_write_gzip_level"></a><span class="summary-sig-name">test_write_gzip_level</span>(<span class="summary-sig-arg">self</span>)</span></td>
158 <td align="right" valign="top">
159 <span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ETreeWriteTestCase.test_write_gzip_level">source code</a></span>
168 <td width="15%" align="right" valign="top" class="summary">
169 <span class="summary-type"> </span>
170 </td><td class="summary">
171 <table width="100%" cellpadding="0" cellspacing="0" border="0">
173 <td><span class="summary-sig"><a name="test_write_file"></a><span class="summary-sig-name">test_write_file</span>(<span class="summary-sig-arg">self</span>)</span></td>
174 <td align="right" valign="top">
175 <span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ETreeWriteTestCase.test_write_file">source code</a></span>
184 <td width="15%" align="right" valign="top" class="summary">
185 <span class="summary-type"> </span>
186 </td><td class="summary">
187 <table width="100%" cellpadding="0" cellspacing="0" border="0">
189 <td><span class="summary-sig"><a name="test_write_file_gzip"></a><span class="summary-sig-name">test_write_file_gzip</span>(<span class="summary-sig-arg">self</span>)</span></td>
190 <td align="right" valign="top">
191 <span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ETreeWriteTestCase.test_write_file_gzip">source code</a></span>
200 <td width="15%" align="right" valign="top" class="summary">
201 <span class="summary-type"> </span>
202 </td><td class="summary">
203 <table width="100%" cellpadding="0" cellspacing="0" border="0">
205 <td><span class="summary-sig"><a name="test_write_file_gzip_parse"></a><span class="summary-sig-name">test_write_file_gzip_parse</span>(<span class="summary-sig-arg">self</span>)</span></td>
206 <td align="right" valign="top">
207 <span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ETreeWriteTestCase.test_write_file_gzip_parse">source code</a></span>
216 <td width="15%" align="right" valign="top" class="summary">
217 <span class="summary-type"> </span>
218 </td><td class="summary">
219 <table width="100%" cellpadding="0" cellspacing="0" border="0">
221 <td><span class="summary-sig"><a name="test_write_file_gzipfile_parse"></a><span class="summary-sig-name">test_write_file_gzipfile_parse</span>(<span class="summary-sig-arg">self</span>)</span></td>
222 <td align="right" valign="top">
223 <span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ETreeWriteTestCase.test_write_file_gzipfile_parse">source code</a></span>
232 <td colspan="2" class="summary">
233 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.tests.common_imports.HelperTestCase-class.html">common_imports.HelperTestCase</a></code></b>:
234 <code><a href="lxml.tests.common_imports.HelperTestCase-class.html#parse">parse</a></code>,
235 <code><a href="lxml.tests.common_imports.HelperTestCase-class.html#tearDown">tearDown</a></code>
237 <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):
238 <code><a href="lxml.tests.common_imports.HelperTestCase-class.html#_rootstring" onclick="show_private();">_rootstring</a></code>
240 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
241 <code>__call__</code>,
243 <code>__hash__</code>,
244 <code>__init__</code>,
246 <code>__repr__</code>,
247 <code>__str__</code>,
248 <code>addCleanup</code>,
249 <code>addTypeEqualityFunc</code>,
250 <code>assertAlmostEqual</code>,
251 <code>assertAlmostEquals</code>,
252 <code>assertDictContainsSubset</code>,
253 <code>assertDictEqual</code>,
254 <code>assertEqual</code>,
255 <code>assertEquals</code>,
256 <code>assertGreater</code>,
257 <code>assertGreaterEqual</code>,
258 <code>assertIn</code>,
259 <code>assertIs</code>,
260 <code>assertIsInstance</code>,
261 <code>assertIsNone</code>,
262 <code>assertIsNot</code>,
263 <code>assertIsNotNone</code>,
264 <code>assertItemsEqual</code>,
265 <code>assertLess</code>,
266 <code>assertLessEqual</code>,
267 <code>assertListEqual</code>,
268 <code>assertMultiLineEqual</code>,
269 <code>assertNotAlmostEqual</code>,
270 <code>assertNotAlmostEquals</code>,
271 <code>assertNotEqual</code>,
272 <code>assertNotEquals</code>,
273 <code>assertNotIn</code>,
274 <code>assertNotIsInstance</code>,
275 <code>assertNotRegexpMatches</code>,
276 <code>assertRaises</code>,
277 <code>assertRaisesRegexp</code>,
278 <code>assertRegexpMatches</code>,
279 <code>assertSequenceEqual</code>,
280 <code>assertSetEqual</code>,
281 <code>assertTrue</code>,
282 <code>assertTupleEqual</code>,
283 <code>assert_</code>,
284 <code>countTestCases</code>,
286 <code>defaultTestResult</code>,
287 <code>doCleanups</code>,
290 <code>failIfAlmostEqual</code>,
291 <code>failIfEqual</code>,
292 <code>failUnless</code>,
293 <code>failUnlessAlmostEqual</code>,
294 <code>failUnlessEqual</code>,
295 <code>failUnlessRaises</code>,
299 <code>shortDescription</code>,
300 <code>skipTest</code>
302 <div class="private"> <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b> (private):
303 <code>_addSkip</code>,
304 <code>_baseAssertEqual</code>,
305 <code>_deprecate</code>,
306 <code>_formatMessage</code>,
307 <code>_getAssertEqualityFunc</code>,
308 <code>_truncateMessage</code>
310 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
311 <code>__delattr__</code>,
312 <code>__format__</code>,
313 <code>__getattribute__</code>,
314 <code>__new__</code>,
315 <code>__reduce__</code>,
316 <code>__reduce_ex__</code>,
317 <code>__setattr__</code>,
318 <code>__sizeof__</code>,
319 <code>__subclasshook__</code>
324 <!-- ==================== CLASS METHODS ==================== -->
325 <a name="section-ClassMethods"></a>
326 <table class="summary" border="1" cellpadding="3"
327 cellspacing="0" width="100%" bgcolor="white">
328 <tr bgcolor="#70b0f0" class="table-header">
329 <td colspan="2" class="table-header">
330 <table border="0" cellpadding="0" cellspacing="0" width="100%">
332 <td align="left"><span class="table-header">Class Methods</span></td>
333 <td align="right" valign="top"
334 ><span class="options">[<a href="#section-ClassMethods"
335 class="privatelink" onclick="toggle_private();"
336 >hide private</a>]</span></td>
342 <td colspan="2" class="summary">
343 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
344 <code>setUpClass</code>,
345 <code>tearDownClass</code>
350 <!-- ==================== CLASS VARIABLES ==================== -->
351 <a name="section-ClassVariables"></a>
352 <table class="summary" border="1" cellpadding="3"
353 cellspacing="0" width="100%" bgcolor="white">
354 <tr bgcolor="#70b0f0" class="table-header">
355 <td colspan="2" class="table-header">
356 <table border="0" cellpadding="0" cellspacing="0" width="100%">
358 <td align="left"><span class="table-header">Class Variables</span></td>
359 <td align="right" valign="top"
360 ><span class="options">[<a href="#section-ClassVariables"
361 class="privatelink" onclick="toggle_private();"
362 >hide private</a>]</span></td>
368 <td colspan="2" class="summary">
369 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.tests.common_imports.HelperTestCase-class.html">common_imports.HelperTestCase</a></code></b>:
370 <code><a href="lxml.tests.common_imports.HelperTestCase-class.html#assertFalse">assertFalse</a></code>
372 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
373 <code>longMessage</code>,
376 <div class="private"> <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b> (private):
377 <code>_classSetupFailed</code>,
378 <code>_diffThreshold</code>
383 <!-- ==================== PROPERTIES ==================== -->
384 <a name="section-Properties"></a>
385 <table class="summary" border="1" cellpadding="3"
386 cellspacing="0" width="100%" bgcolor="white">
387 <tr bgcolor="#70b0f0" class="table-header">
388 <td colspan="2" class="table-header">
389 <table border="0" cellpadding="0" cellspacing="0" width="100%">
391 <td align="left"><span class="table-header">Properties</span></td>
392 <td align="right" valign="top"
393 ><span class="options">[<a href="#section-Properties"
394 class="privatelink" onclick="toggle_private();"
395 >hide private</a>]</span></td>
401 <td colspan="2" class="summary">
402 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
403 <code>__class__</code>
408 <!-- ==================== NAVIGATION BAR ==================== -->
409 <table class="navbar" border="0" width="100%" cellpadding="0"
410 bgcolor="#a0c0ff" cellspacing="0">
413 <th> <a
414 href="lxml-module.html">Home</a> </th>
417 <th> <a
418 href="module-tree.html">Trees</a> </th>
421 <th> <a
422 href="identifier-index.html">Indices</a> </th>
425 <th> <a
426 href="help.html">Help</a> </th>
428 <!-- Project homepage -->
429 <th class="navbar" align="right" width="100%">
430 <table border="0" cellpadding="0" cellspacing="0">
431 <tr><th class="navbar" align="center"
432 ><a class="navbar" target="_top" href="/">lxml API</a></th>
436 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
438 <td align="left" class="footer">
439 Generated by Epydoc 3.0.1 on Tue Jul 31 10:14:19 2012
441 <td align="right" class="footer">
442 <a target="mainFrame" href="http://epydoc.sourceforge.net"
443 >http://epydoc.sourceforge.net</a>
448 <script type="text/javascript">
450 // Private objects are initially displayed (because if
451 // javascript is turned off then we want them to be
452 // visible); but by default, we want to hide them. So hide
453 // them unless we have a cookie that says to show them.