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

Class HtmlParserTestCaseBase

source code

               object --+        
                        |        
        unittest.TestCase --+    
                            |    
common_imports.HelperTestCase --+
                                |
                               HtmlParserTestCaseBase

HTML parser test cases

Nested Classes [hide private]

Inherited from unittest.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_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_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_file(self) source code

Inherited from common_imports.HelperTestCase: parse

Inherited from common_imports.HelperTestCase (private): _rootstring

Inherited from unittest.TestCase: __call__, __init__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, setUp, shortDescription

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  etree
  html_str = '<html><head><title>test</title></head><body><h1>pa...
  broken_html_str = '<html><head><title>test<body><h1>page title...
  uhtml_str = u'<html><head><title>test \xc3\xa1\uf8d2</title></...

Inherited from common_imports.HelperTestCase: assertFalse

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.TestCase.tearDown
(inherited documentation)

Class Variable Details [hide private]

etree

Value:
lxml.etree

html_str

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 \xc3\xa1\uf8d2</title></head><body><h1>page \
\xc3\xa1\uf8d2 title</h1></body></html>'