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_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>
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>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>,
223 <code>defaultTestResult</code>,
224 <code>doCleanups</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>,
236 <code>shortDescription</code>,
237 <code>skipTest</code>
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>
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>
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%">
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>
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>
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%">
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>
305 <td width="15%" align="right" valign="top" class="summary">
306 <span class="summary-type"> </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.
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>,
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>
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%">
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>
343 <td colspan="2" class="summary">
344 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
345 <code>__class__</code>
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%">
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>
368 <a name="tearDown"></a>
370 <table class="details" border="1" cellpadding="3"
371 cellspacing="0" width="100%" bgcolor="white">
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>
377 </td><td align="right" valign="top"
378 ><span class="codelink"><a href="lxml.tests.common_imports-pysrc.html#HelperTestCase.tearDown">source code</a></span>
382 Hook method for deconstructing the test fixture after testing it.
385 unittest.case.TestCase.tearDown
386 <dd><em class="note">(inherited documentation)</em></dd>
392 <!-- ==================== NAVIGATION BAR ==================== -->
393 <table class="navbar" border="0" width="100%" cellpadding="0"
394 bgcolor="#a0c0ff" cellspacing="0">
397 <th> <a
398 href="lxml-module.html">Home</a> </th>
401 <th> <a
402 href="module-tree.html">Trees</a> </th>
405 <th> <a
406 href="identifier-index.html">Indices</a> </th>
409 <th> <a
410 href="help.html">Help</a> </th>
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>
420 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
422 <td align="left" class="footer">
423 Generated by Epydoc 3.0.1 on Tue Jul 31 10:14:19 2012
425 <td align="right" class="footer">
426 <a target="mainFrame" href="http://epydoc.sourceforge.net"
427 >http://epydoc.sourceforge.net</a>
432 <script type="text/javascript">
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.