Package lxml :: Package tests :: Module test_pyclasslookup :: Class PyClassLookupTestCase
[show private | hide private]
[frames | no frames]

Type PyClassLookupTestCase

object --+        
         |        
  TestCase --+    
             |    
HelperTestCase --+
                 |
                PyClassLookupTestCase


Test cases for the lxml.pyclasslookup class lookup mechanism.
Method Summary
  tearDown(self)
Hook method for deconstructing the test fixture after testing it.
  test_lookup(self)
  test_lookup_attrib(self)
  test_lookup_bool(self)
  test_lookup_get(self)
  test_lookup_get_default(self)
  test_lookup_getchildren(self)
  test_lookup_getitem(self)
  test_lookup_getitem_neg(self)
  test_lookup_getnext(self)
  test_lookup_getparent(self)
  test_lookup_getprevious(self)
  test_lookup_getslice(self)
  test_lookup_keep_ref_assertion(self)
  test_lookup_len(self)
  test_lookup_prefix(self)
  test_lookup_sourceline(self)
  test_lookup_tag(self)
  test_lookup_tail(self)
  test_lookup_text(self)
  XML(self, xml)
  _buildElementClass(self)
  _setClassLookup(self, lookup_function)
    Inherited from HelperTestCase
  parse(self, text)
  _rootstring(self, tree)
    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)
  setUp(self)
Hook method for setting up the test fixture before exercising it.
  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
    Inherited from XMLParser
  Element(...)
Creates a new element associated with this parser.

Class Variable Summary
XMLParser parser = <etree.XMLParser object at 0x8456b8c>

Method Details

tearDown(self)

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

Class Variable Details

parser

Type:
XMLParser
Value:
<etree.XMLParser object at 0x8456b8c>                                  

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