Imported Upstream version 2.3.5
[platform/upstream/python-lxml.git] / doc / html / api / lxml.tests.common_imports.HelperTestCase-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.common_imports.HelperTestCase</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.common_imports-module.html">Module&nbsp;common_imports</a> ::
48         Class&nbsp;HelperTestCase
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.common_imports.HelperTestCase-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 HelperTestCase</h1><p class="nomargin-top"><span class="codelink"><a href="lxml.tests.common_imports-pysrc.html#HelperTestCase">source&nbsp;code</a></span></p>
66 <pre class="base-tree">
67             object --+    
68                      |    
69 unittest.case.TestCase --+
70                          |
71                         <strong class="uidshort">HelperTestCase</strong>
72 </pre>
73
74 <dl><dt>Known Subclasses:</dt>
75 <dd>
76       <ul class="subclass-list">
77 <li><a href="lxml.tests.test_xmlschema.ETreeXMLSchemaResolversTestCase-class.html">test_xmlschema.ETreeXMLSchemaResolversTestCase</a></li><li>, <a href="lxml.tests.test_xmlschema.ETreeXMLSchemaTestCase-class.html">test_xmlschema.ETreeXMLSchemaTestCase</a></li><li>, <a href="lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html">test_relaxng.ETreeRelaxNGTestCase</a></li><li>, <a href="lxml.tests.test_classlookup.ClassLookupTestCase-class.html">test_classlookup.ClassLookupTestCase</a></li><li>, <a href="lxml.tests.test_io.IOTestCaseBase-class.html">test_io.IOTestCaseBase</a></li><li>, <a href="lxml.tests.test_dtd.ETreeDtdTestCase-class.html">test_dtd.ETreeDtdTestCase</a></li><li>, <a href="lxml.tests.test_elementtree.ETreeTestCaseBase-class.html">test_elementtree.ETreeTestCaseBase</a></li><li>, <a href="lxml.tests.test_sax.ETreeSaxTestCase-class.html">test_sax.ETreeSaxTestCase</a></li><li>, <a href="lxml.tests.test_etree.ETreeC14NTestCase-class.html">test_etree.ETreeC14NTestCase</a></li><li>, <a href="lxml.tests.test_etree.ETreeErrorLogTest-class.html">test_etree.ETreeErrorLogTest</a></li><li>, <a href="lxml.tests.test_etree.ETreeOnlyTestCase-class.html">test_etree.ETreeOnlyTestCase</a></li><li>, <a href="lxml.tests.test_etree.ETreeWriteTestCase-class.html">test_etree.ETreeWriteTestCase</a></li><li>, <a href="lxml.tests.test_etree.XIncludeTestCase-class.html">test_etree.XIncludeTestCase</a></li><li>, <a href="lxml.tests.test_threading.ThreadPipelineTestCase-class.html">test_threading.ThreadPipelineTestCase</a></li><li>, <a href="lxml.tests.test_threading.ThreadingTestCase-class.html">test_threading.ThreadingTestCase</a></li><li>, <a href="lxml.tests.test_css.CSSTestCase-class.html">test_css.CSSTestCase</a></li><li>, <a href="lxml.tests.test_xslt.ETreeXSLTExtElementTestCase-class.html">test_xslt.ETreeXSLTExtElementTestCase</a></li><li>, <a href="lxml.tests.test_xslt.ETreeXSLTExtFuncTestCase-class.html">test_xslt.ETreeXSLTExtFuncTestCase</a></li><li>, <a href="lxml.tests.test_xslt.ETreeXSLTTestCase-class.html">test_xslt.ETreeXSLTTestCase</a></li><li>, <a href="lxml.tests.test_xslt.Py3XSLTTestCase-class.html">test_xslt.Py3XSLTTestCase</a></li><li>, <a href="lxml.tests.test_objectify.ObjectifyTestCase-class.html">test_objectify.ObjectifyTestCase</a></li><li>, <a href="lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html">test_nsclasses.ETreeNamespaceClassesTestCase</a></li><li>, <a href="lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase-class.html">test_xpathevaluator.ETreeETXPathClassTestCase</a></li><li>, <a href="lxml.tests.test_xpathevaluator.ETreeXPathClassTestCase-class.html">test_xpathevaluator.ETreeXPathClassTestCase</a></li><li>, <a href="lxml.tests.test_xpathevaluator.ETreeXPathExsltTestCase-class.html">test_xpathevaluator.ETreeXPathExsltTestCase</a></li><li>, <a href="lxml.tests.test_xpathevaluator.ETreeXPathTestCase-class.html">test_xpathevaluator.ETreeXPathTestCase</a></li><li>, <a href="lxml.tests.test_schematron.ETreeSchematronTestCase-class.html">test_schematron.ETreeSchematronTestCase</a></li><li>, <a href="lxml.tests.test_unicode.UnicodeTestCase-class.html">test_unicode.UnicodeTestCase</a></li><li>, <a href="lxml.tests.test_errors.ErrorTestCase-class.html">test_errors.ErrorTestCase</a></li><li>, <a href="lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html">test_isoschematron.ETreeISOSchematronTestCase</a></li><li>, <a href="lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html">test_pyclasslookup.PyClassLookupTestCase</a></li><li>, <a href="lxml.tests.test_htmlparser.HtmlParserTestCase-class.html">test_htmlparser.HtmlParserTestCase</a></li>  </ul>
78 </dd></dl>
79
80 <hr />
81 <!-- ==================== NESTED CLASSES ==================== -->
82 <a name="section-NestedClasses"></a>
83 <table class="summary" border="1" cellpadding="3"
84        cellspacing="0" width="100%" bgcolor="white">
85 <tr bgcolor="#70b0f0" class="table-header">
86   <td colspan="2" class="table-header">
87     <table border="0" cellpadding="0" cellspacing="0" width="100%">
88       <tr valign="top">
89         <td align="left"><span class="table-header">Nested Classes</span></td>
90         <td align="right" valign="top"
91          ><span class="options">[<a href="#section-NestedClasses"
92          class="privatelink" onclick="toggle_private();"
93          >hide private</a>]</span></td>
94       </tr>
95     </table>
96   </td>
97 </tr>
98   <tr>
99     <td colspan="2" class="summary">
100     <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
101       <code><a href="exceptions.AssertionError-class.html">failureException</a></code>
102       </p>
103     </td>
104   </tr>
105 </table>
106 <!-- ==================== INSTANCE METHODS ==================== -->
107 <a name="section-InstanceMethods"></a>
108 <table class="summary" border="1" cellpadding="3"
109        cellspacing="0" width="100%" bgcolor="white">
110 <tr bgcolor="#70b0f0" class="table-header">
111   <td colspan="2" class="table-header">
112     <table border="0" cellpadding="0" cellspacing="0" width="100%">
113       <tr valign="top">
114         <td align="left"><span class="table-header">Instance Methods</span></td>
115         <td align="right" valign="top"
116          ><span class="options">[<a href="#section-InstanceMethods"
117          class="privatelink" onclick="toggle_private();"
118          >hide private</a>]</span></td>
119       </tr>
120     </table>
121   </td>
122 </tr>
123 <tr>
124     <td width="15%" align="right" valign="top" class="summary">
125       <span class="summary-type">&nbsp;</span>
126     </td><td class="summary">
127       <table width="100%" cellpadding="0" cellspacing="0" border="0">
128         <tr>
129           <td><span class="summary-sig"><a href="lxml.tests.common_imports.HelperTestCase-class.html#tearDown" class="summary-sig-name">tearDown</a>(<span class="summary-sig-arg">self</span>)</span><br />
130       Hook method for deconstructing the test fixture after testing it.</td>
131           <td align="right" valign="top">
132             <span class="codelink"><a href="lxml.tests.common_imports-pysrc.html#HelperTestCase.tearDown">source&nbsp;code</a></span>
133             
134           </td>
135         </tr>
136       </table>
137       
138     </td>
139   </tr>
140 <tr>
141     <td width="15%" align="right" valign="top" class="summary">
142       <span class="summary-type">&nbsp;</span>
143     </td><td class="summary">
144       <table width="100%" cellpadding="0" cellspacing="0" border="0">
145         <tr>
146           <td><span class="summary-sig"><a name="parse"></a><span class="summary-sig-name">parse</span>(<span class="summary-sig-arg">self</span>,
147         <span class="summary-sig-arg">text</span>,
148         <span class="summary-sig-arg">parser</span>=<span class="summary-sig-default">None</span>)</span></td>
149           <td align="right" valign="top">
150             <span class="codelink"><a href="lxml.tests.common_imports-pysrc.html#HelperTestCase.parse">source&nbsp;code</a></span>
151             
152           </td>
153         </tr>
154       </table>
155       
156     </td>
157   </tr>
158 <tr class="private">
159     <td width="15%" align="right" valign="top" class="summary">
160       <span class="summary-type">&nbsp;</span>
161     </td><td class="summary">
162       <table width="100%" cellpadding="0" cellspacing="0" border="0">
163         <tr>
164           <td><span class="summary-sig"><a name="_rootstring"></a><span class="summary-sig-name">_rootstring</span>(<span class="summary-sig-arg">self</span>,
165         <span class="summary-sig-arg">tree</span>)</span></td>
166           <td align="right" valign="top">
167             <span class="codelink"><a href="lxml.tests.common_imports-pysrc.html#HelperTestCase._rootstring">source&nbsp;code</a></span>
168             
169           </td>
170         </tr>
171       </table>
172       
173     </td>
174   </tr>
175   <tr>
176     <td colspan="2" class="summary">
177     <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
178       <code>__call__</code>,
179       <code>__eq__</code>,
180       <code>__hash__</code>,
181       <code>__init__</code>,
182       <code>__ne__</code>,
183       <code>__repr__</code>,
184       <code>__str__</code>,
185       <code>addCleanup</code>,
186       <code>addTypeEqualityFunc</code>,
187       <code>assertAlmostEqual</code>,
188       <code>assertAlmostEquals</code>,
189       <code>assertDictContainsSubset</code>,
190       <code>assertDictEqual</code>,
191       <code>assertEqual</code>,
192       <code>assertEquals</code>,
193       <code>assertGreater</code>,
194       <code>assertGreaterEqual</code>,
195       <code>assertIn</code>,
196       <code>assertIs</code>,
197       <code>assertIsInstance</code>,
198       <code>assertIsNone</code>,
199       <code>assertIsNot</code>,
200       <code>assertIsNotNone</code>,
201       <code>assertItemsEqual</code>,
202       <code>assertLess</code>,
203       <code>assertLessEqual</code>,
204       <code>assertListEqual</code>,
205       <code>assertMultiLineEqual</code>,
206       <code>assertNotAlmostEqual</code>,
207       <code>assertNotAlmostEquals</code>,
208       <code>assertNotEqual</code>,
209       <code>assertNotEquals</code>,
210       <code>assertNotIn</code>,
211       <code>assertNotIsInstance</code>,
212       <code>assertNotRegexpMatches</code>,
213       <code>assertRaises</code>,
214       <code>assertRaisesRegexp</code>,
215       <code>assertRegexpMatches</code>,
216       <code>assertSequenceEqual</code>,
217       <code>assertSetEqual</code>,
218       <code>assertTrue</code>,
219       <code>assertTupleEqual</code>,
220       <code>assert_</code>,
221       <code>countTestCases</code>,
222       <code>debug</code>,
223       <code>defaultTestResult</code>,
224       <code>doCleanups</code>,
225       <code>fail</code>,
226       <code>failIf</code>,
227       <code>failIfAlmostEqual</code>,
228       <code>failIfEqual</code>,
229       <code>failUnless</code>,
230       <code>failUnlessAlmostEqual</code>,
231       <code>failUnlessEqual</code>,
232       <code>failUnlessRaises</code>,
233       <code>id</code>,
234       <code>run</code>,
235       <code>setUp</code>,
236       <code>shortDescription</code>,
237       <code>skipTest</code>
238       </p>
239     <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b> (private):
240       <code>_addSkip</code>,
241       <code>_baseAssertEqual</code>,
242       <code>_deprecate</code>,
243       <code>_formatMessage</code>,
244       <code>_getAssertEqualityFunc</code>,
245       <code>_truncateMessage</code>
246       </p></div>
247     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
248       <code>__delattr__</code>,
249       <code>__format__</code>,
250       <code>__getattribute__</code>,
251       <code>__new__</code>,
252       <code>__reduce__</code>,
253       <code>__reduce_ex__</code>,
254       <code>__setattr__</code>,
255       <code>__sizeof__</code>,
256       <code>__subclasshook__</code>
257       </p>
258     </td>
259   </tr>
260 </table>
261 <!-- ==================== CLASS METHODS ==================== -->
262 <a name="section-ClassMethods"></a>
263 <table class="summary" border="1" cellpadding="3"
264        cellspacing="0" width="100%" bgcolor="white">
265 <tr bgcolor="#70b0f0" class="table-header">
266   <td colspan="2" class="table-header">
267     <table border="0" cellpadding="0" cellspacing="0" width="100%">
268       <tr valign="top">
269         <td align="left"><span class="table-header">Class Methods</span></td>
270         <td align="right" valign="top"
271          ><span class="options">[<a href="#section-ClassMethods"
272          class="privatelink" onclick="toggle_private();"
273          >hide private</a>]</span></td>
274       </tr>
275     </table>
276   </td>
277 </tr>
278   <tr>
279     <td colspan="2" class="summary">
280     <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
281       <code>setUpClass</code>,
282       <code>tearDownClass</code>
283       </p>
284     </td>
285   </tr>
286 </table>
287 <!-- ==================== CLASS VARIABLES ==================== -->
288 <a name="section-ClassVariables"></a>
289 <table class="summary" border="1" cellpadding="3"
290        cellspacing="0" width="100%" bgcolor="white">
291 <tr bgcolor="#70b0f0" class="table-header">
292   <td colspan="2" class="table-header">
293     <table border="0" cellpadding="0" cellspacing="0" width="100%">
294       <tr valign="top">
295         <td align="left"><span class="table-header">Class Variables</span></td>
296         <td align="right" valign="top"
297          ><span class="options">[<a href="#section-ClassVariables"
298          class="privatelink" onclick="toggle_private();"
299          >hide private</a>]</span></td>
300       </tr>
301     </table>
302   </td>
303 </tr>
304 <tr>
305     <td width="15%" align="right" valign="top" class="summary">
306       <span class="summary-type">&nbsp;</span>
307     </td><td class="summary">
308         <a name="assertFalse"></a><span class="summary-name">assertFalse</span> = <code title="unittest.TestCase.failIf">unittest.TestCase.failIf</code><br />
309       Check that the expression is false.
310     </td>
311   </tr>
312   <tr>
313     <td colspan="2" class="summary">
314     <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
315       <code>longMessage</code>,
316       <code>maxDiff</code>
317       </p>
318     <div class="private">    <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b> (private):
319       <code>_classSetupFailed</code>,
320       <code>_diffThreshold</code>
321       </p></div>
322     </td>
323   </tr>
324 </table>
325 <!-- ==================== PROPERTIES ==================== -->
326 <a name="section-Properties"></a>
327 <table class="summary" border="1" cellpadding="3"
328        cellspacing="0" width="100%" bgcolor="white">
329 <tr bgcolor="#70b0f0" class="table-header">
330   <td colspan="2" class="table-header">
331     <table border="0" cellpadding="0" cellspacing="0" width="100%">
332       <tr valign="top">
333         <td align="left"><span class="table-header">Properties</span></td>
334         <td align="right" valign="top"
335          ><span class="options">[<a href="#section-Properties"
336          class="privatelink" onclick="toggle_private();"
337          >hide private</a>]</span></td>
338       </tr>
339     </table>
340   </td>
341 </tr>
342   <tr>
343     <td colspan="2" class="summary">
344     <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
345       <code>__class__</code>
346       </p>
347     </td>
348   </tr>
349 </table>
350 <!-- ==================== METHOD DETAILS ==================== -->
351 <a name="section-MethodDetails"></a>
352 <table class="details" 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%">
357       <tr valign="top">
358         <td align="left"><span class="table-header">Method Details</span></td>
359         <td align="right" valign="top"
360          ><span class="options">[<a href="#section-MethodDetails"
361          class="privatelink" onclick="toggle_private();"
362          >hide private</a>]</span></td>
363       </tr>
364     </table>
365   </td>
366 </tr>
367 </table>
368 <a name="tearDown"></a>
369 <div>
370 <table class="details" border="1" cellpadding="3"
371        cellspacing="0" width="100%" bgcolor="white">
372 <tr><td>
373   <table width="100%" cellpadding="0" cellspacing="0" border="0">
374   <tr valign="top"><td>
375   <h3 class="epydoc"><span class="sig"><span class="sig-name">tearDown</span>(<span class="sig-arg">self</span>)</span>
376   </h3>
377   </td><td align="right" valign="top"
378     ><span class="codelink"><a href="lxml.tests.common_imports-pysrc.html#HelperTestCase.tearDown">source&nbsp;code</a></span>&nbsp;
379     </td>
380   </tr></table>
381   
382   Hook method for deconstructing the test fixture after testing it.
383   <dl class="fields">
384     <dt>Overrides:
385         unittest.case.TestCase.tearDown
386         <dd><em class="note">(inherited documentation)</em></dd>
387     </dt>
388   </dl>
389 </td></tr></table>
390 </div>
391 <br />
392 <!-- ==================== NAVIGATION BAR ==================== -->
393 <table class="navbar" border="0" width="100%" cellpadding="0"
394        bgcolor="#a0c0ff" cellspacing="0">
395   <tr valign="middle">
396   <!-- Home link -->
397       <th>&nbsp;&nbsp;&nbsp;<a
398         href="lxml-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
399
400   <!-- Tree link -->
401       <th>&nbsp;&nbsp;&nbsp;<a
402         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
403
404   <!-- Index link -->
405       <th>&nbsp;&nbsp;&nbsp;<a
406         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
407
408   <!-- Help link -->
409       <th>&nbsp;&nbsp;&nbsp;<a
410         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
411
412   <!-- Project homepage -->
413       <th class="navbar" align="right" width="100%">
414         <table border="0" cellpadding="0" cellspacing="0">
415           <tr><th class="navbar" align="center"
416             ><a class="navbar" target="_top" href="/">lxml API</a></th>
417           </tr></table></th>
418   </tr>
419 </table>
420 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
421   <tr>
422     <td align="left" class="footer">
423     Generated by Epydoc 3.0.1 on Tue Jul 31 10:14:19 2012
424     </td>
425     <td align="right" class="footer">
426       <a target="mainFrame" href="http://epydoc.sourceforge.net"
427         >http://epydoc.sourceforge.net</a>
428     </td>
429   </tr>
430 </table>
431
432 <script type="text/javascript">
433   <!--
434   // Private objects are initially displayed (because if
435   // javascript is turned off then we want them to be
436   // visible); but by default, we want to hide them.  So hide
437   // them unless we have a cookie that says to show them.
438   checkCookie();
439   // -->
440 </script>
441 </body>
442 </html>