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.common_imports.HelperTestCase</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.common_imports-module.html">Module common_imports</a> ::
48 Class HelperTestCase
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.common_imports.HelperTestCase-class.html"
59 target="_top">no frames</a>]</span></td></tr>
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 code</a></span></p>
66 <pre class="base-tree">
69 unittest.case.TestCase --+
71 <strong class="uidshort">HelperTestCase</strong>
74 <dl><dt>Known Subclasses:</dt>
76 <ul class="subclass-list">
77 <li><a href="lxml.tests.test_incremental_xmlfile.AsyncXmlFileTestCase-class.html">test_incremental_xmlfile.AsyncXmlFileTestCase</a></li><li>, <a href="lxml.tests.test_builder.BuilderTestCase-class.html">test_builder.BuilderTestCase</a></li><li>, <a href="lxml.tests.test_css.CSSTestCase-class.html">test_css.CSSTestCase</a></li><li>, <a href="lxml.tests.test_classlookup.ClassLookupTestCase-class.html">test_classlookup.ClassLookupTestCase</a></li><li>, <a href="lxml.tests.test_doctestcompare.DoctestCompareTest-class.html">test_doctestcompare.DoctestCompareTest</a></li><li>, <a href="lxml.tests.test_etree.ETreeC14NTestCase-class.html">test_etree.ETreeC14NTestCase</a></li><li>, <a href="lxml.tests.test_dtd.ETreeDtdTestCase-class.html">test_dtd.ETreeDtdTestCase</a></li><li>, <a href="lxml.tests.test_xpathevaluator.ETreeETXPathClassTestCase-class.html">test_xpathevaluator.ETreeETXPathClassTestCase</a></li><li>, <a href="lxml.tests.test_xslt.ETreeEXSLTTestCase-class.html">test_xslt.ETreeEXSLTTestCase</a></li><li>, <a href="lxml.tests.test_etree.ETreeErrorLogTest-class.html">test_etree.ETreeErrorLogTest</a></li><li>, <a href="lxml.tests.test_isoschematron.ETreeISOSchematronTestCase-class.html">test_isoschematron.ETreeISOSchematronTestCase</a></li><li>, <a href="lxml.tests.test_nsclasses.ETreeNamespaceClassesTestCase-class.html">test_nsclasses.ETreeNamespaceClassesTestCase</a></li><li>, <a href="lxml.tests.test_etree.ETreeOnlyTestCase-class.html">test_etree.ETreeOnlyTestCase</a></li><li>, <a href="lxml.tests.test_relaxng.ETreeRelaxNGTestCase-class.html">test_relaxng.ETreeRelaxNGTestCase</a></li><li>, <a href="lxml.tests.test_sax.ETreeSaxTestCase-class.html">test_sax.ETreeSaxTestCase</a></li><li>, <a href="lxml.tests.test_schematron.ETreeSchematronTestCase-class.html">test_schematron.ETreeSchematronTestCase</a></li><li>, <a href="lxml.tests.test_etree.ETreeWriteTestCase-class.html">test_etree.ETreeWriteTestCase</a></li><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_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_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_unicode.EncodingsTestCase-class.html">test_unicode.EncodingsTestCase</a></li><li>, <a href="lxml.tests.test_errors.ErrorTestCase-class.html">test_errors.ErrorTestCase</a></li><li>, <a href="lxml.tests.test_elementpath.EtreeElementPathTestCase-class.html">test_elementpath.EtreeElementPathTestCase</a></li><li>, <a href="lxml.tests.test_external_document.ExternalDocumentTestCase-class.html">test_external_document.ExternalDocumentTestCase</a></li><li>, <a href="lxml.tests.test_htmlparser.HtmlParserTestCase-class.html">test_htmlparser.HtmlParserTestCase</a></li><li>, <a href="lxml.tests.test_http_io.HttpIOTestCase-class.html">test_http_io.HttpIOTestCase</a></li><li>, <a href="lxml.tests.test_sax.NSPrefixSaxTestCase-class.html">test_sax.NSPrefixSaxTestCase</a></li><li>, <a href="lxml.tests.test_objectify.ObjectifyTestCase-class.html">test_objectify.ObjectifyTestCase</a></li><li>, <a href="lxml.tests.test_classlookup.ProxyTestCase-class.html">test_classlookup.ProxyTestCase</a></li><li>, <a href="lxml.tests.test_xslt.Py3XSLTTestCase-class.html">test_xslt.Py3XSLTTestCase</a></li><li>, <a href="lxml.tests.test_pyclasslookup.PyClassLookupTestCase-class.html">test_pyclasslookup.PyClassLookupTestCase</a></li><li>, <a href="lxml.tests.test_relaxng.RelaxNGCompactTestCase-class.html">test_relaxng.RelaxNGCompactTestCase</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_unicode.UnicodeTestCase-class.html">test_unicode.UnicodeTestCase</a></li><li class="private">, <a href="lxml.tests.test_elementtree._ETreeTestCaseBase-class.html" onclick="show_private();">test_elementtree._ETreeTestCaseBase</a></li><li class="private">, <a href="lxml.tests.test_io._IOTestCaseBase-class.html" onclick="show_private();">test_io._IOTestCaseBase</a></li><li class="private">, <a href="lxml.tests.test_etree._XIncludeTestCase-class.html" onclick="show_private();">test_etree._XIncludeTestCase</a></li><li class="private">, <a href="lxml.tests.test_incremental_xmlfile._XmlFileTestCaseBase-class.html" onclick="show_private();">test_incremental_xmlfile._XmlFileTestCaseBase</a></li> </ul>
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%">
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>
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>
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%">
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>
124 <td width="15%" align="right" valign="top" class="summary">
125 <span class="summary-type"> </span>
126 </td><td class="summary">
127 <table width="100%" cellpadding="0" cellspacing="0" border="0">
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 code</a></span>
141 <td width="15%" align="right" valign="top" class="summary">
142 <span class="summary-type"> </span>
143 </td><td class="summary">
144 <table width="100%" cellpadding="0" cellspacing="0" border="0">
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 code</a></span>
159 <td width="15%" align="right" valign="top" class="summary">
160 <span class="summary-type"> </span>
161 </td><td class="summary">
162 <table width="100%" cellpadding="0" cellspacing="0" border="0">
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 code</a></span>
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>,
180 <code>__hash__</code>,
181 <code>__init__</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>assertFalse</code>,
194 <code>assertGreater</code>,
195 <code>assertGreaterEqual</code>,
196 <code>assertIn</code>,
197 <code>assertIs</code>,
198 <code>assertIsInstance</code>,
199 <code>assertIsNone</code>,
200 <code>assertIsNot</code>,
201 <code>assertIsNotNone</code>,
202 <code>assertItemsEqual</code>,
203 <code>assertLess</code>,
204 <code>assertLessEqual</code>,
205 <code>assertListEqual</code>,
206 <code>assertMultiLineEqual</code>,
207 <code>assertNotAlmostEqual</code>,
208 <code>assertNotAlmostEquals</code>,
209 <code>assertNotEqual</code>,
210 <code>assertNotEquals</code>,
211 <code>assertNotIn</code>,
212 <code>assertNotIsInstance</code>,
213 <code>assertNotRegexpMatches</code>,
214 <code>assertRaises</code>,
215 <code>assertRaisesRegexp</code>,
216 <code>assertRegexpMatches</code>,
217 <code>assertSequenceEqual</code>,
218 <code>assertSetEqual</code>,
219 <code>assertTrue</code>,
220 <code>assertTupleEqual</code>,
221 <code>assert_</code>,
222 <code>countTestCases</code>,
224 <code>defaultTestResult</code>,
225 <code>doCleanups</code>,
228 <code>failIfAlmostEqual</code>,
229 <code>failIfEqual</code>,
230 <code>failUnless</code>,
231 <code>failUnlessAlmostEqual</code>,
232 <code>failUnlessEqual</code>,
233 <code>failUnlessRaises</code>,
237 <code>shortDescription</code>,
238 <code>skipTest</code>
240 <div class="private"> <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b> (private):
241 <code>_addSkip</code>,
242 <code>_baseAssertEqual</code>,
243 <code>_deprecate</code>,
244 <code>_formatMessage</code>,
245 <code>_getAssertEqualityFunc</code>,
246 <code>_truncateMessage</code>
248 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
249 <code>__delattr__</code>,
250 <code>__format__</code>,
251 <code>__getattribute__</code>,
252 <code>__new__</code>,
253 <code>__reduce__</code>,
254 <code>__reduce_ex__</code>,
255 <code>__setattr__</code>,
256 <code>__sizeof__</code>,
257 <code>__subclasshook__</code>
262 <!-- ==================== CLASS METHODS ==================== -->
263 <a name="section-ClassMethods"></a>
264 <table class="summary" border="1" cellpadding="3"
265 cellspacing="0" width="100%" bgcolor="white">
266 <tr bgcolor="#70b0f0" class="table-header">
267 <td colspan="2" class="table-header">
268 <table border="0" cellpadding="0" cellspacing="0" width="100%">
270 <td align="left"><span class="table-header">Class Methods</span></td>
271 <td align="right" valign="top"
272 ><span class="options">[<a href="#section-ClassMethods"
273 class="privatelink" onclick="toggle_private();"
274 >hide private</a>]</span></td>
280 <td colspan="2" class="summary">
281 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
282 <code>setUpClass</code>,
283 <code>tearDownClass</code>
288 <!-- ==================== CLASS VARIABLES ==================== -->
289 <a name="section-ClassVariables"></a>
290 <table class="summary" border="1" cellpadding="3"
291 cellspacing="0" width="100%" bgcolor="white">
292 <tr bgcolor="#70b0f0" class="table-header">
293 <td colspan="2" class="table-header">
294 <table border="0" cellpadding="0" cellspacing="0" width="100%">
296 <td align="left"><span class="table-header">Class Variables</span></td>
297 <td align="right" valign="top"
298 ><span class="options">[<a href="#section-ClassVariables"
299 class="privatelink" onclick="toggle_private();"
300 >hide private</a>]</span></td>
306 <td colspan="2" class="summary">
307 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
308 <code>longMessage</code>,
311 <div class="private"> <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b> (private):
312 <code>_classSetupFailed</code>,
313 <code>_diffThreshold</code>
318 <!-- ==================== PROPERTIES ==================== -->
319 <a name="section-Properties"></a>
320 <table class="summary" border="1" cellpadding="3"
321 cellspacing="0" width="100%" bgcolor="white">
322 <tr bgcolor="#70b0f0" class="table-header">
323 <td colspan="2" class="table-header">
324 <table border="0" cellpadding="0" cellspacing="0" width="100%">
326 <td align="left"><span class="table-header">Properties</span></td>
327 <td align="right" valign="top"
328 ><span class="options">[<a href="#section-Properties"
329 class="privatelink" onclick="toggle_private();"
330 >hide private</a>]</span></td>
336 <td colspan="2" class="summary">
337 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
338 <code>__class__</code>
343 <!-- ==================== METHOD DETAILS ==================== -->
344 <a name="section-MethodDetails"></a>
345 <table class="details" border="1" cellpadding="3"
346 cellspacing="0" width="100%" bgcolor="white">
347 <tr bgcolor="#70b0f0" class="table-header">
348 <td colspan="2" class="table-header">
349 <table border="0" cellpadding="0" cellspacing="0" width="100%">
351 <td align="left"><span class="table-header">Method Details</span></td>
352 <td align="right" valign="top"
353 ><span class="options">[<a href="#section-MethodDetails"
354 class="privatelink" onclick="toggle_private();"
355 >hide private</a>]</span></td>
361 <a name="tearDown"></a>
363 <table class="details" border="1" cellpadding="3"
364 cellspacing="0" width="100%" bgcolor="white">
366 <table width="100%" cellpadding="0" cellspacing="0" border="0">
367 <tr valign="top"><td>
368 <h3 class="epydoc"><span class="sig"><span class="sig-name">tearDown</span>(<span class="sig-arg">self</span>)</span>
370 </td><td align="right" valign="top"
371 ><span class="codelink"><a href="lxml.tests.common_imports-pysrc.html#HelperTestCase.tearDown">source code</a></span>
375 Hook method for deconstructing the test fixture after testing it.
378 unittest.case.TestCase.tearDown
379 <dd><em class="note">(inherited documentation)</em></dd>
385 <!-- ==================== NAVIGATION BAR ==================== -->
386 <table class="navbar" border="0" width="100%" cellpadding="0"
387 bgcolor="#a0c0ff" cellspacing="0">
390 <th> <a
391 href="lxml-module.html">Home</a> </th>
394 <th> <a
395 href="module-tree.html">Trees</a> </th>
398 <th> <a
399 href="identifier-index.html">Indices</a> </th>
402 <th> <a
403 href="help.html">Help</a> </th>
405 <!-- Project homepage -->
406 <th class="navbar" align="right" width="100%">
407 <table border="0" cellpadding="0" cellspacing="0">
408 <tr><th class="navbar" align="center"
409 ><a class="navbar" target="_top" href="/">lxml API</a></th>
413 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
415 <td align="left" class="footer">
416 Generated by Epydoc 3.0.1
417 on Wed Jan 29 12:26:21 2020
419 <td align="right" class="footer">
420 <a target="mainFrame" href="http://epydoc.sourceforge.net"
421 >http://epydoc.sourceforge.net</a>
426 <script type="text/javascript">
428 // Private objects are initially displayed (because if
429 // javascript is turned off then we want them to be
430 // visible); but by default, we want to hide them. So hide
431 // them unless we have a cookie that says to show them.