class documentation

class ElementTreeTestCase(_ETreeTestCaseBase):

View In Hierarchy

Undocumented

Class Method set​Up​Class Undocumented

Inherited from _ETreeTestCaseBase:

Method assert​Encoding​Declaration Checks if the result XML byte string specifies the encoding.
Method assert​Regex Undocumented
Method assert​XML Writes element out and checks whether it is expected.
Method test​_attrib Undocumented
Method test​_attrib​_as​_attrib Undocumented
Method test​_attrib​_clear Undocumented
Method test​_attrib​_copy Undocumented
Method test​_attrib​_deepcopy Undocumented
Method test​_attrib​_dict Undocumented
Method test​_attrib​_get Undocumented
Method test​_attrib​_ns​_clear Undocumented
Method test​_attrib​_pop Undocumented
Method test​_attrib​_pop​_default Undocumented
Method test​_attrib​_pop​_empty​_default Undocumented
Method test​_attrib​_pop​_invalid​_args Undocumented
Method test​_attrib​_pop​_unknown Undocumented
Method test​_attrib​_set​_clear Undocumented
Method test​_attribute​_contains Undocumented
Method test​_attribute​_items Undocumented
Method test​_attribute​_items2 Undocumented
Method test​_attribute​_items​_ns Undocumented
Method test​_attribute​_iterator Undocumented
Method test​_attribute​_keys Undocumented
Method test​_attribute​_keys2 Undocumented
Method test​_attribute​_keys​_ns Undocumented
Method test​_attribute​_manipulation Undocumented
Method test​_attribute​_namespace​_roundtrip Undocumented
Method test​_attribute​_namespace​_roundtrip​_replaced Undocumented
Method test​_attribute​_set Undocumented
Method test​_attribute​_str Undocumented
Method test​_attribute​_update​_attrib Undocumented
Method test​_attribute​_update​_dict Undocumented
Method test​_attribute​_update​_iter Undocumented
Method test​_attribute​_update​_sequence Undocumented
Method test​_attribute​_values Undocumented
Method test​_attribute​_values​_ns Undocumented
Method test​_attribute​_xmlns​_move Undocumented
Method test​_attributes​_get Undocumented
Method test​_clear Undocumented
Method test​_clear​_sub Undocumented
Method test​_clear​_tail Undocumented
Method test​_comment Undocumented
Method test​_comment​_getitem​_getslice Undocumented
Method test​_comment​_nonsense Undocumented
Method test​_comment​_text Undocumented
Method test​_comment​_whitespace Undocumented
Method test​_crash Undocumented
Method test​_deepcopy Undocumented
Method test​_deepcopy​_append Undocumented
Method test​_deepcopy​_comment Undocumented
Method test​_deepcopy​_elementtree Undocumented
Method test​_deepcopy​_namespaces Undocumented
Method test​_deepcopy​_subelement Undocumented
Method test​_deepcopy​_tail Undocumented
Method test​_del​_attribute​_ns Undocumented
Method test​_del​_attribute​_ns​_parsed Undocumented
Method test​_del​_insert Undocumented
Method test​_del​_setitem Undocumented
Method test​_del​_setslice Undocumented
Method test​_delitem Undocumented
Method test​_delitem​_tail Undocumented
Method test​_delitem​_tail​_dealloc Undocumented
Method test​_delslice Undocumented
Method test​_delslice​_child​_tail Undocumented
Method test​_delslice​_child​_tail​_dealloc Undocumented
Method test​_delslice​_memory Undocumented
Method test​_delslice​_negative1 Undocumented
Method test​_delslice​_negative2 Undocumented
Method test​_delslice​_step Undocumented
Method test​_delslice​_step​_negative Undocumented
Method test​_delslice​_step​_negative2 Undocumented
Method test​_delslice​_tail Undocumented
Method test​_element Undocumented
Method test​_element​_contains Undocumented
Method test​_element​_indexing​_negative Undocumented
Method test​_element​_indexing​_only​_text Undocumented
Method test​_element​_indexing​_with​_text Undocumented
Method test​_element​_indexing​_with​_text2 Undocumented
Method test​_element​_with​_attributes Undocumented
Method test​_element​_with​_attributes​_extra Undocumented
Method test​_element​_with​_attributes​_extra​_duplicate Undocumented
Method test​_element​_with​_attributes​_keywords Undocumented
Method test​_element​_with​_attributes​_ns Undocumented
Method test​_elementtree Undocumented
Method test_​Element​Tree Undocumented
Method test​_elementtree​_parser​_target Undocumented
Method test​_encoding Undocumented
Method test​_encoding​_8bit​_latin1 Undocumented
Method test​_encoding​_8bit​_parse​_stringio Undocumented
Method test​_encoding​_8bit​_xml Undocumented
Method test​_encoding​_exact Undocumented
Method test​_encoding​_sub​_tostring​_default​_encoding Undocumented
Method test​_encoding​_tostring Undocumented
Method test​_encoding​_tostring​_default​_encoding Undocumented
Method test​_encoding​_tostring​_sub Undocumented
Method test​_encoding​_tostring​_sub​_tail Undocumented
Method test​_encoding​_tostring​_unknown Undocumented
Method test​_encoding​_utf8​_bom Undocumented
Method test​_encoding​_write​_default​_encoding Undocumented
Method test​_extend Undocumented
Method test​_feed​_parser​_bytes Undocumented
Method test​_feed​_parser​_error​_broken Undocumented
Method test​_feed​_parser​_error​_close​_empty Undocumented
Method test​_feed​_parser​_error​_close​_incomplete Undocumented
Method test​_feed​_parser​_error​_position Undocumented
Method test​_feed​_parser​_unicode​_ascii Undocumented
Method test​_feed​_parser​_unicode​_astral Undocumented
Method test​_feed​_parser​_unicode​_astral​_large Undocumented
Method test​_findall Undocumented
Method test​_findall​_ns Undocumented
Method test​_findall​_wildcard Undocumented
Method test​_fromstring Undocumented
Method test​_fromstringlist Undocumented
Method test​_fromstringlist​_characters Undocumented
Method test​_fromstringlist​_single Undocumented
Method test​_getslice Undocumented
Method test​_getslice​_negative Undocumented
Method test​_getslice​_step Undocumented
Method test​_getslice​_text Undocumented
Method test​_insert Undocumented
Method test​_insert​_beyond​_index Undocumented
Method test​_insert​_name​_interning Undocumented
Method test​_insert​_negative Undocumented
Method test​_insert​_tail Undocumented
Method test​_interface Undocumented
Method test​_iselement Undocumented
Method test​_iter Undocumented
Method test​_iter​_remove​_tail Undocumented
Method test​_iteration Undocumented
Method test​_iteration​_clear​_tail Undocumented
Method test​_iteration​_del​_child Undocumented
Method test​_iteration​_double Undocumented
Method test​_iteration​_empty Undocumented
Method test​_iteration​_reversed Undocumented
Method test​_iteration​_set​_tail​_empty Undocumented
Method test​_iteration​_subelement Undocumented
Method test​_iteration​_text​_only Undocumented
Method test​_iterparse Undocumented
Method test​_iterparse​_cdata Undocumented
Method test​_iterparse​_clear Undocumented
Method test​_iterparse​_file Undocumented
Method test​_iterparse​_incomplete Undocumented
Method test​_iterparse​_large Undocumented
Method test​_iterparse​_move​_elements Undocumented
Method test​_iterparse​_only​_end​_ns Undocumented
Method test​_iterparse​_set​_ns​_attribute Undocumented
Method test​_iterparse​_start Undocumented
Method test​_iterparse​_start​_end Undocumented
Method test​_itertext Undocumented
Method test​_itertext​_child Undocumented
Method test​_late​_tail Undocumented
Method test​_late​_tail​_mix​_pi​_comments Undocumented
Method test​_makeelement Undocumented
Method test​_merge​_namespaced​_subtree​_as​_slice Undocumented
Method test​_multiple​_elementrees Undocumented
Method test​_namespaces​_after​_serialize Undocumented
Method test​_ns​_access Undocumented
Method test​_ns​_access2 Undocumented
Method test​_ns​_attr Undocumented
Method test​_ns​_decl​_tostring Undocumented
Method test​_ns​_decl​_tostring​_default Undocumented
Method test​_ns​_decl​_tostring​_element Undocumented
Method test​_ns​_decl​_tostring​_root Undocumented
Method test​_ns​_move Undocumented
Method test​_ns​_setting Undocumented
Method test​_ns​_tag​_parse Undocumented
Method test​_parse​_cdata Undocumented
Method test​_parse​_encoding​_8bit​_explicit Undocumented
Method test​_parse​_encoding​_8bit​_override Undocumented
Method test​_parse​_error Undocumented
Method test​_parse​_error​_from​_file Undocumented
Method test​_parse​_error​_none Undocumented
Method test​_parse​_file Undocumented
Method test​_parse​_file​_encoding Undocumented
Method test​_parse​_file​_nonexistent Undocumented
Method test​_parse​_file​_object Undocumented
Method test​_parse​_file​_object​_encoding Undocumented
Method test​_parse​_stringio Undocumented
Method test​_parse​_with​_encoding Undocumented
Method test​_parser​_target​_attrib Undocumented
Method test​_parser​_target​_data Undocumented
Method test​_parser​_target​_end​_ns Undocumented
Method test​_parser​_target​_entity Undocumented
Method test​_parser​_target​_entity​_unknown Undocumented
Method test​_parser​_target​_error​_in​_close Undocumented
Method test​_parser​_target​_error​_in​_end Undocumented
Method test​_parser​_target​_error​_in​_start Undocumented
Method test​_parser​_target​_error​_in​_start​_and​_close Undocumented
Method test​_parser​_target​_property Undocumented
Method test​_parser​_target​_start​_end​_ns Undocumented
Method test​_parser​_target​_tag Undocumented
Method test​_parser​_version Undocumented
Method test​_pi Undocumented
Method test​_pi​_nonsense Undocumented
Method test​_processinginstruction Undocumented
Method test​_qname Undocumented
Method test​_qname​_attrib Undocumented
Method test​_qname​_attrib​_resolve Undocumented
Method test​_qname​_attribute​_getset Undocumented
Method test​_qname​_attribute​_resolve Undocumented
Method test​_qname​_attribute​_resolve​_new Undocumented
Method test​_qname​_cmp Undocumented
Method test​_register​_namespace Undocumented
Method test​_remove Undocumented
Method test​_remove​_nonexisting Undocumented
Method test​_remove​_ns Undocumented
Method test​_remove​_tail Undocumented
Method test​_remove​_while​_iterating Undocumented
Method test​_replace​_slice​_tail Undocumented
Method test​_set​_text Undocumented
Method test​_set​_text2 Undocumented
Method test​_set​_text​_empty Undocumented
Method test​_set​_text​_none Undocumented
Method test​_setitem Undocumented
Method test​_setitem2 Undocumented
Method test​_setitem​_indexerror Undocumented
Method test​_setitem​_replace Undocumented
Method test​_setitem​_tail Undocumented
Method test​_setslice Undocumented
Method test​_setslice​_all Undocumented
Method test​_setslice​_all​_empty Undocumented
Method test​_setslice​_all​_replace Undocumented
Method test​_setslice​_all​_replace​_reversed Undocumented
Method test​_setslice​_all​_replace​_reversed​_ns1 Undocumented
Method test​_setslice​_all​_replace​_reversed​_ns2 Undocumented
Method test​_setslice​_empty Undocumented
Method test​_setslice​_end Undocumented
Method test​_setslice​_end​_exact Undocumented
Method test​_setslice​_negative Undocumented
Method test​_setslice​_negative2 Undocumented
Method test​_setslice​_single Undocumented
Method test​_setslice​_tail Undocumented
Method test​_shallowcopy Undocumented
Method test​_shallowcopy​_elementtree Undocumented
Method test​_simple Undocumented
Method test​_subelement Undocumented
Method test​_subelement​_reference Undocumented
Method test​_subelement​_with​_attributes Undocumented
Method test​_subelement​_with​_attributes​_ns Undocumented
Method test​_tag​_reset​_ns Undocumented
Method test​_tag​_reset​_root​_ns Undocumented
Method test​_tag​_str​_subclass Undocumented
Method test​_tag​_write Undocumented
Method test​_tail Undocumented
Method test​_tail1 Undocumented
Method test​_tail​_append Undocumented
Method test​_tail​_elementtree​_root Undocumented
Method test​_tail​_set​_none Undocumented
Method test​_tail​_set​_twice Undocumented
Method test​_tail​_str​_subclass Undocumented
Method test​_text Undocumented
Method test​_text​_empty Undocumented
Method test​_text​_escape​_in Undocumented
Method test​_text​_escape​_out Undocumented
Method test​_text​_escape​_tostring Undocumented
Method test​_text​_other Undocumented
Method test​_text​_str​_subclass Undocumented
Method test​_tostring Undocumented
Method test​_tostring​_element Undocumented
Method test​_tostring​_element​_tail Undocumented
Method test​_tostring​_method​_html Undocumented
Method test​_tostring​_method​_text Undocumented
Method test​_treebuilder Undocumented
Method test​_treebuilder​_comment Undocumented
Method test​_treebuilder​_pi Undocumented
Method test​_treebuilder​_target Undocumented
Method test​_weird​_dict​_interaction Undocumented
Method test​_write Undocumented
Method test_write_​Element​Tree​Doctest Undocumented
Method test​_write​_fail Undocumented
Method test​_write​_method​_html Undocumented
Method test​_write​_method​_text Undocumented
Method test_​XML Undocumented
Method test_​XMLID Undocumented
Method ​XMLParser Undocumented
Class Variable etree Undocumented
Class Variable required_versions_c​ET Undocumented
Class Variable required_versions_​ET Undocumented
Method ​_check​_element Undocumented
Method ​_check​_element​_tree Undocumented
Method ​_check​_mapping Undocumented
Method ​_check​_string Undocumented
Method ​_rootstring Undocumented
Method ​_test​_del​_tail Undocumented
Method ​_test​_element​_boolean Undocumented
Method ​_test​_wrong​_unicode​_encoding Undocumented
Method _write​Element Write out element for comparison.
Method _write​Element​File Write out element for comparison, using real file.

Inherited from HelperTestCase (via _ETreeTestCaseBase):

Method parse Undocumented
Method tear​Down Undocumented
@classmethod
def setUpClass(cls):

Undocumented