Package lxml :: Package tests :: Module test_etree :: Class ETreeOnlyTestCase

[frames] | no frames]

# Class ETreeOnlyTestCase

source code

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

Tests only for etree, not ElementTree

Nested Classes
Inherited from `unittest.TestCase`: `failureException`

Instance Methods

test_version(self) | source code

test_c_api(self) | source code

test_element_names(self) | source code

test_element_name_empty(self) | source code

test_element_name_colon(self) | source code

test_element_name_quote(self) | source code

test_element_name_space(self) | source code

test_subelement_name_empty(self) | source code

test_subelement_name_colon(self) | source code

test_subelement_name_quote(self) | source code

test_subelement_name_space(self) | source code

test_qname_empty(self) | source code

test_qname_colon(self) | source code

test_qname_space(self) | source code

test_qname_text_resolve(self) | source code

test_attribute_set_invalid(self) | source code

test_attrib_pop(self) | source code

test_attrib_pop_unknown(self) | source code

test_attrib_pop_default(self) | source code

test_attrib_pop_empty_default(self) | source code

test_attrib_pop_invalid_args(self) | source code

test_pi(self) | source code

test_pi_parse(self) | source code

test_deepcopy_pi(self) | source code

test_deepcopy_comment(self) | source code

test_attribute_set(self) | source code

test_parse_error(self) | source code

test_parse_remove_comments(self) | source code

test_parse_remove_pis(self) | source code

test_parse_parser_type_error(self) | source code

test_parse_error_logging(self) | source code

test_parse_error_from_file(self) | source code

test_iterparse_comments(self) | source code

test_iterparse_remove_comments(self) | source code

test_iterparse_broken(self) | source code

test_iterparse_strip(self) | source code

test_iterparse_tag(self) | source code

test_iterparse_tag_all(self) | source code

test_iterparse_encoding_8bit_override(self) | source code

test_parser_encoding_unknown(self) | source code

test_iterwalk_tag(self) | source code

test_iterwalk_tag_all(self) | source code

test_iterwalk(self) | source code

test_iterwalk_start(self) | source code

test_iterwalk_start_end(self) | source code

test_iterwalk_clear(self) | source code

test_iterwalk_attrib_ns(self) | source code

test_iterwalk_getiterator(self) | source code

test_resolve_string_dtd(self) | source code

test_resolve_empty(self) | source code

test_resolve_error(self) | source code

test_entity_parse(self) | source code

test_entity_append(self) | source code

test_entity_values(self) | source code

test_entity_error(self) | source code

test_setitem_assert(self) | source code

test_append_None(self) | source code

test_addnext(self) | source code

test_addprevious(self) | source code

test_addnext_root(self) | source code

test_addprevious_pi(self) | source code

test_addprevious_root_pi(self) | source code

test_addnext_pi(self) | source code

test_addnext_root_pi(self) | source code

test_addnext_comment(self) | source code

test_addnext_root_comment(self) | source code

test_addprevious_comment(self) | source code

test_addprevious_root_comment(self) | source code

test_attribute_values(self) | source code

test_comment_empty(self) | source code

test_comment_parse_empty(self) | source code

test_comment_no_proxy_yet(self) | source code

test_comment_text(self) | source code

test_comment_whitespace(self) | source code

test_comment_immutable(self) | source code

test_weird_dict_interaction(self) | source code

test_dump_none(self) | source code

test_prefix(self) | source code

test_prefix_default_ns(self) | source code

test_getparent(self) | source code

test_iterchildren(self) | source code

test_iterchildren_reversed(self) | source code

test_iterchildren_tag(self) | source code

test_iterchildren_tag_reversed(self) | source code

test_iterancestors(self) | source code

test_iterancestors_tag(self) | source code

test_iterdescendants(self) | source code

test_iterdescendants_tag(self) | source code

test_getroottree(self) | source code

test_getnext(self) | source code

test_getprevious(self) | source code

test_itersiblings(self) | source code

test_itersiblings_tag(self) | source code

test_parseid(self) | source code

test_XMLDTDID(self) | source code

test_XMLDTDID_empty(self) | source code

test_namespaces(self) | source code

test_namespaces_default(self) | source code

test_namespaces_default_and_attr(self) | source code

test_namespaces_elementtree(self) | source code

test_namespaces_default_copy_element(self) | source code

test_namespaces_copy_element(self) | source code

test_namespaces_reuse_after_move(self) | source code

test_namespaces_after_serialize(self) | source code

test_element_nsmap(self) | source code

test_subelement_nsmap(self) | source code

test_getiterator_filter_namespace(self) | source code

test_getiterator_filter_entities(self) | source code

test_getiterator_filter_element(self) | source code

test_getiterator_filter_all_comment_pi(self) | source code

test_itertext(self) | source code

test_itertext_child(self) | source code

test_elementtree_find_qname(self) | source code

test_elementtree_findall_qname(self) | source code

test_elementtree_findall_ns_qname(self) | source code

test_findall_ns(self) | source code

test_index(self) | source code

test_replace(self) | source code

test_replace_new(self) | source code

test_setslice_all_empty_reversed(self) | source code

test_setslice_step(self) | source code

test_setslice_step_negative(self) | source code

test_setslice_step_negative2(self) | source code

test_setslice_step_overrun(self) | source code

test_extend(self) | source code

test_sourceline_XML(self) | source code

test_sourceline_parse(self) | source code

test_sourceline_iterparse_end(self) | source code

test_sourceline_iterparse_start(self) | source code

test_sourceline_element(self) | source code

test_XML_base_url_docinfo(self) | source code

test_parse_stringio_base_url(self) | source code

test_parse_base_url_docinfo(self) | source code

test_HTML_base_url_docinfo(self) | source code

test_docinfo_public(self) | source code

test_docinfo_system(self) | source code

test_docinfo_empty(self) | source code

test_dtd_io(self) | source code

test_byte_zero(self) | source code

test_unicode_byte_zero(self) | source code

test_byte_invalid(self) | source code

test_unicode_byte_invalid(self) | source code

test_encoding_tostring_utf16(self) | source code

test_tostring_none(self) | source code

test_tostring_pretty(self) | source code

test_tostring_with_tail(self) | source code

test_tostring_method_text_encoding(self) | source code

test_tounicode(self) | source code

test_tounicode_element(self) | source code

test_tounicode_none(self) | source code

test_tounicode_element_tail(self) | source code

test_tounicode_pretty(self) | source code

test_tostring_unicode(self) | source code

test_tostring_unicode_element(self) | source code

test_tostring_unicode_none(self) | source code

test_tostring_unicode_element_tail(self) | source code

test_tostring_unicode_pretty(self) | source code

Inherited from `common_imports.HelperTestCase`: `parse`, `tearDown`

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 `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Class Variables
| etree The `lxml.etree` module implements the extended ElementTree API for XML.
Inherited from `common_imports.HelperTestCase`: `assertFalse`

Properties
Inherited from `object`: `__class__`

Class Variable Details

### etree

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

Value:
  lxml.etree