Package lxml :: Package tests :: Module test_htmlparser :: Class HtmlParserTestCase
[hide private]
[frames] | no frames]

Class HtmlParserTestCase

source code

               object --+        
                        |        
   unittest.case.TestCase --+    
                            |    
common_imports.HelperTestCase --+
                                |
                               HtmlParserTestCase

HTML parser test cases
Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
tearDown(self)
Hook method for deconstructing the test fixture after testing it.
source code
 
test_module_HTML(self) source code
 
test_module_HTML_unicode(self) source code
 
test_wide_unicode_xml(self) source code
 
test_html_ids(self) source code
 
test_html_ids_no_collect_ids(self) source code
 
test_module_HTML_pretty_print(self) source code
 
test_module_parse_html_error(self) source code
 
test_html_element_name_empty(self) source code
 
test_html_element_name_colon(self) source code
 
test_html_element_name_quote(self) source code
 
test_html_element_name_space(self) source code
 
test_html_subelement_name_empty(self) source code
 
test_html_subelement_name_colon(self) source code
 
test_html_subelement_name_quote(self) source code
 
test_html_subelement_name_space(self) source code
 
test_module_parse_html_norecover(self) source code
 
test_module_parse_html_default_doctype(self) source code
 
test_parse_encoding_8bit_explicit(self) source code
 
test_parse_encoding_8bit_override(self) source code
 
test_module_HTML_broken(self) source code
 
test_module_HTML_cdata(self) source code
 
test_module_HTML_access(self) source code
 
test_module_parse_html(self) source code
 
test_module_parse_html_filelike(self) source code
 
test_html_file_error(self) source code
 
test_default_parser_HTML_broken(self) source code
 
test_html_iterparse(self) source code
 
test_html_iterparse_tag(self) source code
 
test_html_iterparse_stop_short(self) source code
 
test_html_iterparse_broken(self) source code
 
test_html_iterparse_broken_no_recover(self) source code
 
test_html_iterparse_file(self) source code
 
test_html_iterparse_start(self) source code
 
test_html_feed_parser(self) source code
 
test_html_feed_parser_chunky(self) source code
 
test_html_feed_parser_more_tags(self) source code
 
test_html_parser_target_tag(self) source code
 
test_html_parser_target_doctype_empty(self) source code
 
test_html_parser_target_doctype_html(self) source code
 
test_html_parser_target_doctype_html_full(self) source code
 
test_html_parser_target_exceptions(self) source code
 
test_html_fromstring_target_exceptions(self) source code
 
test_set_decl_html(self) source code
 
test_html5_doctype(self) source code
 
test_ietf_decl(self) source code
 
test_boolean_attribute(self) source code
 
test_boolean_attribute_round_trip(self) source code
 
test_boolean_attribute_xml_adds_empty_string(self) source code

Inherited from common_imports.HelperTestCase: parse

Inherited from common_imports.HelperTestCase (private): _rootstring

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __init__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, setUp, shortDescription, skipTest

Inherited from unittest.case.TestCase (private): _addSkip, _baseAssertEqual, _deprecate, _formatMessage, _getAssertEqualityFunc, _truncateMessage

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from unittest.case.TestCase: setUpClass, tearDownClass

Class Variables [hide private]
  etree
The lxml.etree module implements the extended ElementTree API for XML.
  html_str = '<html><head><title>test</title></head><body><h1>pa...
  html_str_pretty = '<html>\n<head><title>test</title></head>\n<...
  broken_html_str = '<html><head><title>test<body><h1>page title...
  uhtml_str = u'<html><head><title>test á</title></head><body>...

Inherited from unittest.case.TestCase: longMessage, maxDiff

Inherited from unittest.case.TestCase (private): _classSetupFailed, _diffThreshold

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

tearDown(self)

source code 
Hook method for deconstructing the test fixture after testing it.
Overrides: unittest.case.TestCase.tearDown
(inherited documentation)

Class Variable Details [hide private]

etree

The lxml.etree module implements the extended ElementTree API for XML.
Value:
lxml.etree

html_str

Value:
'<html><head><title>test</title></head><body><h1>page title</h1></body\
></html>'

html_str_pretty

Value:
'''<html>
<head><title>test</title></head>
<body><h1>page title</h1></body>
</html>
'''

broken_html_str

Value:
'<html><head><title>test<body><h1>page title</h3></p></html>'

uhtml_str

Value:
u'<html><head><title>test á</title></head><body><h1>page á title</\
h1></body></html>'