Package lemon :: Package external :: Package Cheetah :: Package Tests :: Module SyntaxAndOutput :: Class NameMapper
[show private | hide private]
[frames | no frames]

Class NameMapper

TestCase --+    
           |    
  OutputTest --+
               |
              NameMapper

Known Subclasses:
NameMapper_MacEOL, NameMapper_Win32EOL

Method Summary
  test1(self)
autocalling...
  test10(self)
nested dictionary access - NameMapper style...
  test11(self)
nested dictionary access - Python style...
  test12(self)
nested dictionary access - alternating style...
  test13(self)
nested dictionary access using method - alternating style...
  test14(self)
nested dictionary access - NameMapper style - followed by method...
  test15(self)
nested dictionary access - alternating style - followed by method...
  test16(self)
nested dictionary access - NameMapper style - followed by method, then slice...
  test17(self)
nested dictionary access - Python style using a soft-coded key...
  test18(self)
object method access...
  test19(self)
object method access, followed by complex slice...
  test2(self)
nested autocalling...
  test20(self)
object method access, followed by a very complex slice...
  test21(self)
object method access with % in the default arg for the meth.
  test3(self)
list subscription...
  test4(self)
list slicing...
  test5(self)
list slicing and subcription combined...
  test6(self)
dictionary access - NameMapper style...
  test7(self)
dictionary access - Python style...
  test8(self)
dictionary access combined with autocalled string method...
  test9(self)
dictionary access combined with string method...
    Inherited from OutputTest
  genClassCode(self)
  genModuleCode(self)
  searchList(self)
  settings(self)
  verify(self, input, output)
  _gen(self, input)
  _verify(self, expectedOutput, notes)
    Inherited from TestCase
  __init__(self, methodName)
Create an instance of the class that will use the named test method when executed.
  __call__(self, result)
  __repr__(self)
  __str__(self)
  assert_(self, expr, msg)
Fail the test unless the expression is true.
  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.
  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.
  countTestCases(self)
  debug(self)
Run the test without collecting errors in a TestResult...
  defaultTestResult(self)
  describe(self)
Returns a one-line description of the test, or None if no description has been provided.
  explain(self)
  fail(self, msg)
Fail immediately, with the given message.
  failIf(self, expr, msg)
Fail the test if the expression is true.
  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.
  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)
  setDescription(self, descr)
  setExplanation(self, expln)
  setId(self, id)
  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.
  tearDown(self)
Hook method for deconstructing the test fixture after testing it.
  _setupMetaData(self)
Setup the default meta data for the test case:...
  _setupTestMethod(self)

Class Variable Summary
    Inherited from OutputTest
bool convertEOLs = True
int DEBUGLEV = 0                                                                     
str report = '\nTemplate output mismatch: %(notes)s \n\n    ...
list _searchList = [{'strip1': '  \t   strippable whitespace ...
dict _templateSettings = {}
    Inherited from TestCase
NoneType name = None                                                                  

Method Details

test1(self)

autocalling

test10(self)

nested dictionary access - NameMapper style

test11(self)

nested dictionary access - Python style

test12(self)

nested dictionary access - alternating style

test13(self)

nested dictionary access using method - alternating style

test14(self)

nested dictionary access - NameMapper style - followed by method

test15(self)

nested dictionary access - alternating style - followed by method

test16(self)

nested dictionary access - NameMapper style - followed by method, then slice

test17(self)

nested dictionary access - Python style using a soft-coded key

test18(self)

object method access

test19(self)

object method access, followed by complex slice

test2(self)

nested autocalling

test20(self)

object method access, followed by a very complex slice
If it can pass this one, it's safe to say it works!!

test21(self)

object method access with % in the default arg for the meth.

This tests a bug that Jeff Johnson found and submitted a patch to SF
for.

test3(self)

list subscription

test4(self)

list slicing

test5(self)

list slicing and subcription combined

test6(self)

dictionary access - NameMapper style

test7(self)

dictionary access - Python style

test8(self)

dictionary access combined with autocalled string method

test9(self)

dictionary access combined with string method

Generated by Epydoc 2.0 on Mon Nov 10 15:08:02 2003 http://epydoc.sf.net