Package lxml :: Package tests :: Module test_elementtree :: Class ETreeTestCase
[show private | hide private]
[frames | no frames]

Type ETreeTestCase

object --+            
         |            
  TestCase --+        
             |        
HelperTestCase --+    
                 |    
 ETreeTestCaseBase --+
                     |
                    ETreeTestCase


Method Summary
    Inherited from ETreeTestCaseBase
  assertEncodingDeclaration(self, result, encoding)
Checks if the result XML byte string specifies the encoding.
  assertXML(self, expected, element, encoding)
Writes element out and checks whether it is expected.
  buildNodes(self, element, children, depth)
  getTestFilePath(self, name)
  setUp(self)
Hook method for setting up the test fixture before exercising it.
  tearDown(self)
Hook method for deconstructing the test fixture after testing it.
  test_attrib_clear(self)
  test_attrib_set_clear(self)
  test_attribute_contains(self)
  test_attribute_has_key(self)
  test_attribute_items(self)
  test_attribute_items2(self)
  test_attribute_items_ns(self)
  test_attribute_iterator(self)
  test_attribute_keys(self)
  test_attribute_keys2(self)
  test_attribute_keys_ns(self)
  test_attribute_manipulation(self)
  test_attribute_set(self)
  test_attribute_str(self)
  test_attribute_update_dict(self)
  test_attribute_update_iter(self)
  test_attribute_update_sequence(self)
  test_attribute_values(self)
  test_attribute_values_ns(self)
  test_attribute_xmlns_move(self)
  test_attributes(self)
  test_attributes2(self)
  test_attributes3(self)
  test_clear(self)
  test_clear_sub(self)
  test_clear_tail(self)
  test_comment(self)
  test_comment_getitem_getslice(self)
  test_comment_nonsense(self)
  test_comment_text(self)
  test_comment_whitespace(self)
  test_crash(self)
  test_deepcopy(self)
  test_deepcopy_append(self)
  test_deepcopy_elementtree(self)
  test_deepcopy_namespaces(self)
  test_deepcopy_subelement(self)
  test_deepcopy_tail(self)
  test_del_insert(self)
  test_del_setitem(self)
  test_del_setslice(self)
  test_delitem(self)
  test_delitem_tail(self)
  test_delslice(self)
  test_delslice_memory(self)
  test_delslice_negative1(self)
  test_delslice_negative2(self)
  test_delslice_tail(self)
  test_element(self)
  test_element_boolean(self)
  test_element_contains(self)
  test_element_indexing_negative(self)
  test_element_indexing_only_text(self)
  test_element_indexing_with_text(self)
  test_element_indexing_with_text2(self)
  test_element_with_attributes(self)
  test_element_with_attributes_keywords(self)
  test_element_with_attributes_ns(self)
  test_ElementTree(self)
  test_elementtree(self)
  test_elementtree_getiterator(self)
  test_elementtree_getiterator_filter(self)
  test_encoding(self)
  test_encoding_8bit_latin1(self)
  test_encoding_8bit_parse_stringio(self)
  test_encoding_8bit_xml(self)
  test_encoding_exact(self)
  test_encoding_sub_tostring_default_encoding(self)
  test_encoding_tostring(self)
  test_encoding_tostring_default_encoding(self)
  test_encoding_tostring_sub(self)
  test_encoding_tostring_sub_tail(self)
  test_encoding_tostring_unknown(self)
  test_encoding_write_default_encoding(self)
  test_findall(self)
  test_findall_ns(self)
  test_fromstring(self)
  test_getchildren(self)
  test_getiterator(self)
  test_getiterator_empty(self)
  test_getiterator_filter(self)
  test_getiterator_filter_all(self)
  test_getiterator_filter_comment(self)
  test_getiterator_filter_pi(self)
  test_getiterator_filter_with_text(self)
  test_getiterator_with_text(self)
  test_getslice(self)
  test_getslice_negative(self)
  test_getslice_text(self)
  test_insert(self)
  test_insert_beyond_index(self)
  test_insert_negative(self)
  test_insert_tail(self)
  test_iselement(self)
  test_iteration(self)
  test_iteration_crash(self)
  test_iteration_del_child(self)
  test_iteration_double(self)
  test_iteration_empty(self)
  test_iteration_reversed(self)
  test_iteration_subelement(self)
  test_iteration_text_only(self)
  test_iterparse(self)
  test_iterparse_attrib_ns(self)
  test_iterparse_clear(self)
  test_iterparse_file(self)
  test_iterparse_getiterator(self)
  test_iterparse_large(self)
  test_iterparse_start(self)
  test_iterparse_start_end(self)
  test_makeelement(self)
  test_multiple_elementrees(self)
  test_ns_access(self)
  test_ns_access2(self)
  test_ns_attr(self)
  test_ns_move(self)
  test_ns_setting(self)
  test_ns_tag_parse(self)
  test_parse_file(self)
  test_parse_file_encoding(self)
  test_parse_file_nonexistent(self)
  test_parse_file_object(self)
  test_parse_file_object_encoding(self)
  test_parse_stringio(self)
  test_parse_with_encoding(self)
  test_pi(self)
  test_pi_nonsense(self)
  test_qname(self)
  test_qname_cmp(self)
  test_remove(self)
  test_remove_nonexisting(self)
  test_remove_ns(self)
  test_remove_tail(self)
  test_replace_slice_tail(self)
  test_set_text(self)
  test_set_text2(self)
  test_set_text_empty(self)
  test_set_text_none(self)
  test_setitem(self)
  test_setitem2(self)
  test_setitem_indexerror(self)
  test_setitem_replace(self)
  test_setitem_tail(self)
  test_setslice(self)
  test_setslice_empty(self)
  test_setslice_end(self)
  test_setslice_negative(self)
  test_setslice_tail(self)
  test_shallowcopy(self)
  test_shallowcopy_elementtree(self)
  test_simple(self)
  test_subelement(self)
  test_subelement_reference(self)
  test_subelement_with_attributes(self)
  test_subelement_with_attributes_ns(self)
  test_tag_reset_ns(self)
  test_tag_reset_root_ns(self)
  test_tag_str_subclass(self)
  test_tag_write(self)
  test_tail(self)
  test_tail1(self)
  test_tail_append(self)
  test_tail_elementtree_root(self)
  test_tail_set_none(self)
  test_tail_set_twice(self)
  test_tail_str_subclass(self)
  test_text(self)
  test_text_empty(self)
  test_text_escape_in(self)
  test_text_escape_out(self)
  test_text_escape_tostring(self)
  test_text_other(self)
  test_text_str_subclass(self)
  test_tostring(self)
  test_tostring_element(self)
  test_tostring_element_tail(self)
  test_tree(self)
  test_write(self)
  test_write_ElementTreeDoctest(self)
  test_write_fail(self)
  test_XML(self)
  test_XMLID(self)
  _check_element(self, element)
  _check_element_tree(self, tree)
  _check_mapping(self, mapping)
  _check_string(self, string)
  _rootstring(self, tree)
  _test_wrong_unicode_encoding(self)
  _writeElement(self, element, encoding)
Write out element for comparison.
  _writeElementFile(self, element, encoding)
Write out element for comparison, using real file.
    Inherited from HelperTestCase
  parse(self, text)
    Inherited from TestCase
  __init__(self, methodName)
Create an instance of the class that will use the named test method when executed.
  __call__(self, *args, **kwds)
  __repr__(self)
  __str__(self)
  assert_(self, expr, msg)
Fail the test unless the expression is true.
  assertAlmostEqual(self, first, second, places, msg)
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
  assertAlmostEquals(self, first, second, places, msg)
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
  assertEqual(self, first, second, msg)
Fail if the two objects are unequal as determined by the '==' operator.
  assertEquals(self, first, second, msg)
Fail if the two objects are unequal as determined by the '==' operator.
  assertFalse(self, expr, msg)
Fail the test if the expression is true.
  assertNotAlmostEqual(self, first, second, places, msg)
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
  assertNotAlmostEquals(self, first, second, places, msg)
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
  assertNotEqual(self, first, second, msg)
Fail if the two objects are equal as determined by the '==' operator.
  assertNotEquals(self, first, second, msg)
Fail if the two objects are equal as determined by the '==' operator.
  assertRaises(self, excClass, callableObj, *args, **kwargs)
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs.
  assertTrue(self, expr, msg)
Fail the test unless the expression is true.
  countTestCases(self)
  debug(self)
Run the test without collecting errors in a TestResult
  defaultTestResult(self)
  fail(self, msg)
Fail immediately, with the given message.
  failIf(self, expr, msg)
Fail the test if the expression is true.
  failIfAlmostEqual(self, first, second, places, msg)
Fail if the two objects are equal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
  failIfEqual(self, first, second, msg)
Fail if the two objects are equal as determined by the '==' operator.
  failUnless(self, expr, msg)
Fail the test unless the expression is true.
  failUnlessAlmostEqual(self, first, second, places, msg)
Fail if the two objects are unequal as determined by their difference rounded to the given number of decimal places (default 7) and comparing to zero.
  failUnlessEqual(self, first, second, msg)
Fail if the two objects are unequal as determined by the '==' operator.
  failUnlessRaises(self, excClass, callableObj, *args, **kwargs)
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs.
  id(self)
  run(self, result)
  shortDescription(self)
Returns a one-line description of the test, or None if no description has been provided.
  _exc_info(self)
Return a version of sys.exc_info() with the traceback frame minimised; usually the top level of the traceback frame is not needed.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value

Class Variable Summary
    Inherited from ETreeTestCaseBase
NoneType etree = None                                                                  

Generated by Epydoc 2.1 on Thu Jul 26 19:14:08 2007 http://epydoc.sf.net