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_unicode.UnicodeTestCase</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_unicode-module.html">Module test_unicode</a> ::
48 Class UnicodeTestCase
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_unicode.UnicodeTestCase-class.html"
59 target="_top">no frames</a>]</span></td></tr>
64 <!-- ==================== CLASS DESCRIPTION ==================== -->
65 <h1 class="epydoc">Class UnicodeTestCase</h1><p class="nomargin-top"><span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase">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">UnicodeTestCase</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__str"></a><span class="summary-sig-name">test__str</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_unicode-pysrc.html#UnicodeTestCase.test__str">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_unicode_xml"></a><span class="summary-sig-name">test_unicode_xml</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_unicode-pysrc.html#UnicodeTestCase.test_unicode_xml">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_wide_unicode_xml"></a><span class="summary-sig-name">test_wide_unicode_xml</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_unicode-pysrc.html#UnicodeTestCase.test_wide_unicode_xml">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_unicode_xml_broken"></a><span class="summary-sig-name">test_unicode_xml_broken</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_unicode-pysrc.html#UnicodeTestCase.test_unicode_xml_broken">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_unicode_tag"></a><span class="summary-sig-name">test_unicode_tag</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_unicode-pysrc.html#UnicodeTestCase.test_unicode_tag">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_unicode_tag_invalid"></a><span class="summary-sig-name">test_unicode_tag_invalid</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_unicode-pysrc.html#UnicodeTestCase.test_unicode_tag_invalid">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_unicode_nstag"></a><span class="summary-sig-name">test_unicode_nstag</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_unicode-pysrc.html#UnicodeTestCase.test_unicode_nstag">source code</a></span>
232 <td width="15%" align="right" valign="top" class="summary">
233 <span class="summary-type"> </span>
234 </td><td class="summary">
235 <table width="100%" cellpadding="0" cellspacing="0" border="0">
237 <td><span class="summary-sig"><a name="test_unicode_ns_invalid"></a><span class="summary-sig-name">test_unicode_ns_invalid</span>(<span class="summary-sig-arg">self</span>)</span></td>
238 <td align="right" valign="top">
239 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_unicode_ns_invalid">source code</a></span>
248 <td width="15%" align="right" valign="top" class="summary">
249 <span class="summary-type"> </span>
250 </td><td class="summary">
251 <table width="100%" cellpadding="0" cellspacing="0" border="0">
253 <td><span class="summary-sig"><a name="test_unicode_nstag_invalid"></a><span class="summary-sig-name">test_unicode_nstag_invalid</span>(<span class="summary-sig-arg">self</span>)</span></td>
254 <td align="right" valign="top">
255 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_unicode_nstag_invalid">source code</a></span>
264 <td width="15%" align="right" valign="top" class="summary">
265 <span class="summary-type"> </span>
266 </td><td class="summary">
267 <table width="100%" cellpadding="0" cellspacing="0" border="0">
269 <td><span class="summary-sig"><a name="test_unicode_qname"></a><span class="summary-sig-name">test_unicode_qname</span>(<span class="summary-sig-arg">self</span>)</span></td>
270 <td align="right" valign="top">
271 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_unicode_qname">source code</a></span>
280 <td width="15%" align="right" valign="top" class="summary">
281 <span class="summary-type"> </span>
282 </td><td class="summary">
283 <table width="100%" cellpadding="0" cellspacing="0" border="0">
285 <td><span class="summary-sig"><a name="test_unicode_qname_invalid"></a><span class="summary-sig-name">test_unicode_qname_invalid</span>(<span class="summary-sig-arg">self</span>)</span></td>
286 <td align="right" valign="top">
287 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_unicode_qname_invalid">source code</a></span>
296 <td width="15%" align="right" valign="top" class="summary">
297 <span class="summary-type"> </span>
298 </td><td class="summary">
299 <table width="100%" cellpadding="0" cellspacing="0" border="0">
301 <td><span class="summary-sig"><a name="test_unicode_attr"></a><span class="summary-sig-name">test_unicode_attr</span>(<span class="summary-sig-arg">self</span>)</span></td>
302 <td align="right" valign="top">
303 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_unicode_attr">source code</a></span>
312 <td width="15%" align="right" valign="top" class="summary">
313 <span class="summary-type"> </span>
314 </td><td class="summary">
315 <table width="100%" cellpadding="0" cellspacing="0" border="0">
317 <td><span class="summary-sig"><a name="test_unicode_comment"></a><span class="summary-sig-name">test_unicode_comment</span>(<span class="summary-sig-arg">self</span>)</span></td>
318 <td align="right" valign="top">
319 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_unicode_comment">source code</a></span>
328 <td width="15%" align="right" valign="top" class="summary">
329 <span class="summary-type"> </span>
330 </td><td class="summary">
331 <table width="100%" cellpadding="0" cellspacing="0" border="0">
333 <td><span class="summary-sig"><a name="test_unicode_repr1"></a><span class="summary-sig-name">test_unicode_repr1</span>(<span class="summary-sig-arg">self</span>)</span></td>
334 <td align="right" valign="top">
335 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_unicode_repr1">source code</a></span>
344 <td width="15%" align="right" valign="top" class="summary">
345 <span class="summary-type"> </span>
346 </td><td class="summary">
347 <table width="100%" cellpadding="0" cellspacing="0" border="0">
349 <td><span class="summary-sig"><a name="test_unicode_repr2"></a><span class="summary-sig-name">test_unicode_repr2</span>(<span class="summary-sig-arg">self</span>)</span></td>
350 <td align="right" valign="top">
351 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_unicode_repr2">source code</a></span>
360 <td width="15%" align="right" valign="top" class="summary">
361 <span class="summary-type"> </span>
362 </td><td class="summary">
363 <table width="100%" cellpadding="0" cellspacing="0" border="0">
365 <td><span class="summary-sig"><a name="test_unicode_repr3"></a><span class="summary-sig-name">test_unicode_repr3</span>(<span class="summary-sig-arg">self</span>)</span></td>
366 <td align="right" valign="top">
367 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_unicode_repr3">source code</a></span>
376 <td width="15%" align="right" valign="top" class="summary">
377 <span class="summary-type"> </span>
378 </td><td class="summary">
379 <table width="100%" cellpadding="0" cellspacing="0" border="0">
381 <td><span class="summary-sig"><a name="test_unicode_repr4"></a><span class="summary-sig-name">test_unicode_repr4</span>(<span class="summary-sig-arg">self</span>)</span></td>
382 <td align="right" valign="top">
383 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_unicode_repr4">source code</a></span>
392 <td width="15%" align="right" valign="top" class="summary">
393 <span class="summary-type"> </span>
394 </td><td class="summary">
395 <table width="100%" cellpadding="0" cellspacing="0" border="0">
397 <td><span class="summary-sig"><a name="test_unicode_text"></a><span class="summary-sig-name">test_unicode_text</span>(<span class="summary-sig-arg">self</span>)</span></td>
398 <td align="right" valign="top">
399 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_unicode_text">source code</a></span>
408 <td width="15%" align="right" valign="top" class="summary">
409 <span class="summary-type"> </span>
410 </td><td class="summary">
411 <table width="100%" cellpadding="0" cellspacing="0" border="0">
413 <td><span class="summary-sig"><a name="test_uniname"></a><span class="summary-sig-name">test_uniname</span>(<span class="summary-sig-arg">self</span>)</span></td>
414 <td align="right" valign="top">
415 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_uniname">source code</a></span>
424 <td width="15%" align="right" valign="top" class="summary">
425 <span class="summary-type"> </span>
426 </td><td class="summary">
427 <table width="100%" cellpadding="0" cellspacing="0" border="0">
429 <td><span class="summary-sig"><a name="test_unicode_parse_stringio"></a><span class="summary-sig-name">test_unicode_parse_stringio</span>(<span class="summary-sig-arg">self</span>)</span></td>
430 <td align="right" valign="top">
431 <span class="codelink"><a href="lxml.tests.test_unicode-pysrc.html#UnicodeTestCase.test_unicode_parse_stringio">source code</a></span>
440 <td colspan="2" class="summary">
441 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.tests.common_imports.HelperTestCase-class.html">common_imports.HelperTestCase</a></code></b>:
442 <code><a href="lxml.tests.common_imports.HelperTestCase-class.html#parse">parse</a></code>,
443 <code><a href="lxml.tests.common_imports.HelperTestCase-class.html#tearDown">tearDown</a></code>
445 <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):
446 <code><a href="lxml.tests.common_imports.HelperTestCase-class.html#_rootstring" onclick="show_private();">_rootstring</a></code>
448 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
449 <code>__call__</code>,
451 <code>__hash__</code>,
452 <code>__init__</code>,
454 <code>__repr__</code>,
455 <code>__str__</code>,
456 <code>addCleanup</code>,
457 <code>addTypeEqualityFunc</code>,
458 <code>assertAlmostEqual</code>,
459 <code>assertAlmostEquals</code>,
460 <code>assertDictContainsSubset</code>,
461 <code>assertDictEqual</code>,
462 <code>assertEqual</code>,
463 <code>assertEquals</code>,
464 <code>assertFalse</code>,
465 <code>assertGreater</code>,
466 <code>assertGreaterEqual</code>,
467 <code>assertIn</code>,
468 <code>assertIs</code>,
469 <code>assertIsInstance</code>,
470 <code>assertIsNone</code>,
471 <code>assertIsNot</code>,
472 <code>assertIsNotNone</code>,
473 <code>assertItemsEqual</code>,
474 <code>assertLess</code>,
475 <code>assertLessEqual</code>,
476 <code>assertListEqual</code>,
477 <code>assertMultiLineEqual</code>,
478 <code>assertNotAlmostEqual</code>,
479 <code>assertNotAlmostEquals</code>,
480 <code>assertNotEqual</code>,
481 <code>assertNotEquals</code>,
482 <code>assertNotIn</code>,
483 <code>assertNotIsInstance</code>,
484 <code>assertNotRegexpMatches</code>,
485 <code>assertRaises</code>,
486 <code>assertRaisesRegexp</code>,
487 <code>assertRegexpMatches</code>,
488 <code>assertSequenceEqual</code>,
489 <code>assertSetEqual</code>,
490 <code>assertTrue</code>,
491 <code>assertTupleEqual</code>,
492 <code>assert_</code>,
493 <code>countTestCases</code>,
495 <code>defaultTestResult</code>,
496 <code>doCleanups</code>,
499 <code>failIfAlmostEqual</code>,
500 <code>failIfEqual</code>,
501 <code>failUnless</code>,
502 <code>failUnlessAlmostEqual</code>,
503 <code>failUnlessEqual</code>,
504 <code>failUnlessRaises</code>,
508 <code>shortDescription</code>,
509 <code>skipTest</code>
511 <div class="private"> <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b> (private):
512 <code>_addSkip</code>,
513 <code>_baseAssertEqual</code>,
514 <code>_deprecate</code>,
515 <code>_formatMessage</code>,
516 <code>_getAssertEqualityFunc</code>,
517 <code>_truncateMessage</code>
519 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
520 <code>__delattr__</code>,
521 <code>__format__</code>,
522 <code>__getattribute__</code>,
523 <code>__new__</code>,
524 <code>__reduce__</code>,
525 <code>__reduce_ex__</code>,
526 <code>__setattr__</code>,
527 <code>__sizeof__</code>,
528 <code>__subclasshook__</code>
533 <!-- ==================== CLASS METHODS ==================== -->
534 <a name="section-ClassMethods"></a>
535 <table class="summary" border="1" cellpadding="3"
536 cellspacing="0" width="100%" bgcolor="white">
537 <tr bgcolor="#70b0f0" class="table-header">
538 <td colspan="2" class="table-header">
539 <table border="0" cellpadding="0" cellspacing="0" width="100%">
541 <td align="left"><span class="table-header">Class Methods</span></td>
542 <td align="right" valign="top"
543 ><span class="options">[<a href="#section-ClassMethods"
544 class="privatelink" onclick="toggle_private();"
545 >hide private</a>]</span></td>
551 <td colspan="2" class="summary">
552 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
553 <code>setUpClass</code>,
554 <code>tearDownClass</code>
559 <!-- ==================== CLASS VARIABLES ==================== -->
560 <a name="section-ClassVariables"></a>
561 <table class="summary" border="1" cellpadding="3"
562 cellspacing="0" width="100%" bgcolor="white">
563 <tr bgcolor="#70b0f0" class="table-header">
564 <td colspan="2" class="table-header">
565 <table border="0" cellpadding="0" cellspacing="0" width="100%">
567 <td align="left"><span class="table-header">Class Variables</span></td>
568 <td align="right" valign="top"
569 ><span class="options">[<a href="#section-ClassVariables"
570 class="privatelink" onclick="toggle_private();"
571 >hide private</a>]</span></td>
577 <td colspan="2" class="summary">
578 <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b>:
579 <code>longMessage</code>,
582 <div class="private"> <p class="indent-wrapped-lines"><b>Inherited from <code>unittest.case.TestCase</code></b> (private):
583 <code>_classSetupFailed</code>,
584 <code>_diffThreshold</code>
589 <!-- ==================== PROPERTIES ==================== -->
590 <a name="section-Properties"></a>
591 <table class="summary" border="1" cellpadding="3"
592 cellspacing="0" width="100%" bgcolor="white">
593 <tr bgcolor="#70b0f0" class="table-header">
594 <td colspan="2" class="table-header">
595 <table border="0" cellpadding="0" cellspacing="0" width="100%">
597 <td align="left"><span class="table-header">Properties</span></td>
598 <td align="right" valign="top"
599 ><span class="options">[<a href="#section-Properties"
600 class="privatelink" onclick="toggle_private();"
601 >hide private</a>]</span></td>
607 <td colspan="2" class="summary">
608 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
609 <code>__class__</code>
614 <!-- ==================== NAVIGATION BAR ==================== -->
615 <table class="navbar" border="0" width="100%" cellpadding="0"
616 bgcolor="#a0c0ff" cellspacing="0">
619 <th> <a
620 href="lxml-module.html">Home</a> </th>
623 <th> <a
624 href="module-tree.html">Trees</a> </th>
627 <th> <a
628 href="identifier-index.html">Indices</a> </th>
631 <th> <a
632 href="help.html">Help</a> </th>
634 <!-- Project homepage -->
635 <th class="navbar" align="right" width="100%">
636 <table border="0" cellpadding="0" cellspacing="0">
637 <tr><th class="navbar" align="center"
638 ><a class="navbar" target="_top" href="/">lxml API</a></th>
642 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
644 <td align="left" class="footer">
645 Generated by Epydoc 3.0.1
646 on Wed Jan 29 12:26:21 2020
648 <td align="right" class="footer">
649 <a target="mainFrame" href="http://epydoc.sourceforge.net"
650 >http://epydoc.sourceforge.net</a>
655 <script type="text/javascript">
657 // Private objects are initially displayed (because if
658 // javascript is turned off then we want them to be
659 // visible); but by default, we want to hide them. So hide
660 // them unless we have a cookie that says to show them.