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.ElementIncludeTestCase</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 ElementIncludeTestCase
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.ElementIncludeTestCase-class.html"
59 target="_top">no frames</a>]</span></td></tr>
64 <!-- ==================== CLASS DESCRIPTION ==================== -->
65 <h1 class="epydoc">Class ElementIncludeTestCase</h1><p class="nomargin-top"><span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ElementIncludeTestCase">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_etree._XIncludeTestCase-class.html" onclick="show_private();">_XIncludeTestCase</a> --+
75 <strong class="uidshort">ElementIncludeTestCase</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 width="15%" align="right" valign="top" class="summary">
123 <span class="summary-type"> </span>
124 </td><td class="summary">
125 <table width="100%" cellpadding="0" cellspacing="0" border="0">
127 <td><span class="summary-sig"><a name="include"></a><span class="summary-sig-name">include</span>(<span class="summary-sig-arg">self</span>,
128 <span class="summary-sig-arg">tree</span>,
129 <span class="summary-sig-arg">loader</span>=<span class="summary-sig-default">None</span>,
130 <span class="summary-sig-arg">max_depth</span>=<span class="summary-sig-default">None</span>)</span></td>
131 <td align="right" valign="top">
132 <span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ElementIncludeTestCase.include">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="xinclude_loader"></a><span class="summary-sig-name">xinclude_loader</span>(<span class="summary-sig-arg">self</span>,
147 <span class="summary-sig-arg">href</span>,
148 <span class="summary-sig-arg">parse</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">xml</code><code class="variable-quote">'</code></span>,
149 <span class="summary-sig-arg">encoding</span>=<span class="summary-sig-default">None</span>)</span></td>
150 <td align="right" valign="top">
151 <span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ElementIncludeTestCase.xinclude_loader">source code</a></span>
160 <td width="15%" align="right" valign="top" class="summary">
161 <span class="summary-type"> </span>
162 </td><td class="summary">
163 <table width="100%" cellpadding="0" cellspacing="0" border="0">
165 <td><span class="summary-sig"><a name="test_xinclude_failures"></a><span class="summary-sig-name">test_xinclude_failures</span>(<span class="summary-sig-arg">self</span>)</span></td>
166 <td align="right" valign="top">
167 <span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ElementIncludeTestCase.test_xinclude_failures">source code</a></span>
176 <td width="15%" align="right" valign="top" class="summary">
177 <span class="summary-type"> </span>
178 </td><td class="summary">
179 <table width="100%" cellpadding="0" cellspacing="0" border="0">
181 <td><span class="summary-sig"><a name="test_multiple_include_of_same_file"></a><span class="summary-sig-name">test_multiple_include_of_same_file</span>(<span class="summary-sig-arg">self</span>)</span></td>
182 <td align="right" valign="top">
183 <span class="codelink"><a href="lxml.tests.test_etree-pysrc.html#ElementIncludeTestCase.test_multiple_include_of_same_file">source code</a></span>
192 <td colspan="2" class="summary">
193 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.tests.test_etree._XIncludeTestCase-class.html" onclick="show_private();">_XIncludeTestCase</a></code></b>:
194 <code><a href="lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude">test_xinclude</a></code>,
195 <code><a href="lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude_resolver">test_xinclude_resolver</a></code>,
196 <code><a href="lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude_resolver_recursive">test_xinclude_resolver_recursive</a></code>,
197 <code><a href="lxml.tests.test_etree._XIncludeTestCase-class.html#test_xinclude_text">test_xinclude_text</a></code>
199 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.tests.common_imports.HelperTestCase-class.html">common_imports.HelperTestCase</a></code></b>:
200 <code><a href="lxml.tests.common_imports.HelperTestCase-class.html#parse">parse</a></code>,
201 <code><a href="lxml.tests.common_imports.HelperTestCase-class.html#tearDown">tearDown</a></code>
203 <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):
204 <code><a href="lxml.tests.common_imports.HelperTestCase-class.html#_rootstring" onclick="show_private();">_rootstring</a></code>
206 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
207 <code>__call__</code>,
209 <code>__hash__</code>,
210 <code>__init__</code>,
212 <code>__repr__</code>,
213 <code>__str__</code>,
214 <code>addCleanup</code>,
215 <code>addTypeEqualityFunc</code>,
216 <code>assertAlmostEqual</code>,
217 <code>assertAlmostEquals</code>,
218 <code>assertDictContainsSubset</code>,
219 <code>assertDictEqual</code>,
220 <code>assertEqual</code>,
221 <code>assertEquals</code>,
222 <code>assertFalse</code>,
223 <code>assertGreater</code>,
224 <code>assertGreaterEqual</code>,
225 <code>assertIn</code>,
226 <code>assertIs</code>,
227 <code>assertIsInstance</code>,
228 <code>assertIsNone</code>,
229 <code>assertIsNot</code>,
230 <code>assertIsNotNone</code>,
231 <code>assertItemsEqual</code>,
232 <code>assertLess</code>,
233 <code>assertLessEqual</code>,
234 <code>assertListEqual</code>,
235 <code>assertMultiLineEqual</code>,
236 <code>assertNotAlmostEqual</code>,
237 <code>assertNotAlmostEquals</code>,
238 <code>assertNotEqual</code>,
239 <code>assertNotEquals</code>,
240 <code>assertNotIn</code>,
241 <code>assertNotIsInstance</code>,
242 <code>assertNotRegexpMatches</code>,
243 <code>assertRaises</code>,
244 <code>assertRaisesRegexp</code>,
245 <code>assertRegexpMatches</code>,
246 <code>assertSequenceEqual</code>,
247 <code>assertSetEqual</code>,
248 <code>assertTrue</code>,
249 <code>assertTupleEqual</code>,
250 <code>assert_</code>,
251 <code>countTestCases</code>,
253 <code>defaultTestResult</code>,
254 <code>doCleanups</code>,
257 <code>failIfAlmostEqual</code>,
258 <code>failIfEqual</code>,
259 <code>failUnless</code>,
260 <code>failUnlessAlmostEqual</code>,
261 <code>failUnlessEqual</code>,
262 <code>failUnlessRaises</code>,
266 <code>shortDescription</code>,
267 <code>skipTest</code>
269 <div class="private"> <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b> (private):
270 <code>_addSkip</code>,
271 <code>_baseAssertEqual</code>,
272 <code>_deprecate</code>,
273 <code>_formatMessage</code>,
274 <code>_getAssertEqualityFunc</code>,
275 <code>_truncateMessage</code>
277 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
278 <code>__delattr__</code>,
279 <code>__format__</code>,
280 <code>__getattribute__</code>,
281 <code>__new__</code>,
282 <code>__reduce__</code>,
283 <code>__reduce_ex__</code>,
284 <code>__setattr__</code>,
285 <code>__sizeof__</code>,
286 <code>__subclasshook__</code>
291 <!-- ==================== CLASS METHODS ==================== -->
292 <a name="section-ClassMethods"></a>
293 <table class="summary" border="1" cellpadding="3"
294 cellspacing="0" width="100%" bgcolor="white">
295 <tr bgcolor="#70b0f0" class="table-header">
296 <td colspan="2" class="table-header">
297 <table border="0" cellpadding="0" cellspacing="0" width="100%">
299 <td align="left"><span class="table-header">Class Methods</span></td>
300 <td align="right" valign="top"
301 ><span class="options">[<a href="#section-ClassMethods"
302 class="privatelink" onclick="toggle_private();"
303 >hide private</a>]</span></td>
309 <td colspan="2" class="summary">
310 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
311 <code>setUpClass</code>,
312 <code>tearDownClass</code>
317 <!-- ==================== CLASS VARIABLES ==================== -->
318 <a name="section-ClassVariables"></a>
319 <table class="summary" border="1" cellpadding="3"
320 cellspacing="0" width="100%" bgcolor="white">
321 <tr bgcolor="#70b0f0" class="table-header">
322 <td colspan="2" class="table-header">
323 <table border="0" cellpadding="0" cellspacing="0" width="100%">
325 <td align="left"><span class="table-header">Class Variables</span></td>
326 <td align="right" valign="top"
327 ><span class="options">[<a href="#section-ClassVariables"
328 class="privatelink" onclick="toggle_private();"
329 >hide private</a>]</span></td>
335 <td width="15%" align="right" valign="top" class="summary">
336 <span class="summary-type"> </span>
337 </td><td class="summary">
338 <a href="lxml.tests.test_etree.ElementIncludeTestCase-class.html#XINCLUDE" class="summary-name">XINCLUDE</a> = <code title="{'Leaf.xml': ''' <?xml version=\'1.0\'?>
339 <document xmlns:xi="http://www.w3.org/2001/XInclude">
340 <p>No further includes</p>
343 'NonRecursive1.xml': ''' <?xml version=\'1.0\'?>
344 <document xmlns:xi="http://www.w3.org/2001/XInclude">
345 <p>The following is multiple times the source code of NonRecursi\
346 ..."><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">Leaf.xml</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string"> <?xml version=\'1.0\'?>\n <doc</code><code class="variable-ellipsis">...</code></code>
350 <td colspan="2" class="summary">
351 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
352 <code>longMessage</code>,
355 <div class="private"> <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b> (private):
356 <code>_classSetupFailed</code>,
357 <code>_diffThreshold</code>
362 <!-- ==================== PROPERTIES ==================== -->
363 <a name="section-Properties"></a>
364 <table class="summary" border="1" cellpadding="3"
365 cellspacing="0" width="100%" bgcolor="white">
366 <tr bgcolor="#70b0f0" class="table-header">
367 <td colspan="2" class="table-header">
368 <table border="0" cellpadding="0" cellspacing="0" width="100%">
370 <td align="left"><span class="table-header">Properties</span></td>
371 <td align="right" valign="top"
372 ><span class="options">[<a href="#section-Properties"
373 class="privatelink" onclick="toggle_private();"
374 >hide private</a>]</span></td>
380 <td colspan="2" class="summary">
381 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
382 <code>__class__</code>
387 <!-- ==================== CLASS VARIABLE DETAILS ==================== -->
388 <a name="section-ClassVariableDetails"></a>
389 <table class="details" border="1" cellpadding="3"
390 cellspacing="0" width="100%" bgcolor="white">
391 <tr bgcolor="#70b0f0" class="table-header">
392 <td colspan="2" class="table-header">
393 <table border="0" cellpadding="0" cellspacing="0" width="100%">
395 <td align="left"><span class="table-header">Class Variable Details</span></td>
396 <td align="right" valign="top"
397 ><span class="options">[<a href="#section-ClassVariableDetails"
398 class="privatelink" onclick="toggle_private();"
399 >hide private</a>]</span></td>
405 <a name="XINCLUDE"></a>
407 <table class="details" border="1" cellpadding="3"
408 cellspacing="0" width="100%" bgcolor="white">
410 <h3 class="epydoc">XINCLUDE</h3>
416 <dd><table><tr><td><pre class="variable">
417 <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">Leaf.xml</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'''</code><code class="variable-string"> <?xml version=\'1.0\'?></code>
418 <code class="variable-string"> <document xmlns:xi="http://www.w3.org/2001/XInclude"></code>
419 <code class="variable-string"> <p>No further includes</p></code>
420 <code class="variable-string"> </document></code>
421 <code class="variable-string"> </code><code class="variable-quote">'''</code><code class="variable-op">,</code>
422 <code class="variable-quote">'</code><code class="variable-string">NonRecursive1.xml</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'''</code><code class="variable-string"> <?xml version=\'1.0\'?></code>
423 <code class="variable-string"> <document xmlns:xi="http://www.w3.org/2001/XInclude"></code>
424 <code class="variable-string"> <p>The following is multiple times the source code of NonRecursi</code><span class="variable-linewrap"><img src="crarr.png" alt="\" /></span>
425 <code class="variable-ellipsis">...</code>
426 </pre></td></tr></table>
432 <!-- ==================== NAVIGATION BAR ==================== -->
433 <table class="navbar" border="0" width="100%" cellpadding="0"
434 bgcolor="#a0c0ff" cellspacing="0">
437 <th> <a
438 href="lxml-module.html">Home</a> </th>
441 <th> <a
442 href="module-tree.html">Trees</a> </th>
445 <th> <a
446 href="identifier-index.html">Indices</a> </th>
449 <th> <a
450 href="help.html">Help</a> </th>
452 <!-- Project homepage -->
453 <th class="navbar" align="right" width="100%">
454 <table border="0" cellpadding="0" cellspacing="0">
455 <tr><th class="navbar" align="center"
456 ><a class="navbar" target="_top" href="/">lxml API</a></th>
460 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
462 <td align="left" class="footer">
463 Generated by Epydoc 3.0.1
464 on Thu Jul 9 18:29:53 2020
466 <td align="right" class="footer">
467 <a target="mainFrame" href="http://epydoc.sourceforge.net"
468 >http://epydoc.sourceforge.net</a>
473 <script type="text/javascript">
475 // Private objects are initially displayed (because if
476 // javascript is turned off then we want them to be
477 // visible); but by default, we want to hide them. So hide
478 // them unless we have a cookie that says to show them.