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

Class IfDirective

TestCase --+    
           |    
  OutputTest --+
               |
              IfDirective

Known Subclasses:
IfDirective_MacEOL, IfDirective_Win32EOL

Method Summary
  test1(self)
simple #if block...
  test10(self)
#if block using $*emptyString...
  test11(self)
#if block using $*5*emptyString...
  test12(self)
#if ...
  test13(self)
#if# ...
  test14(self)
#if <condition> then <true> else <false>...
  test15(self)
#if <condition> then <true> else <false>...
  test2(self)
simple #if block, with WS...
  test3(self)
simple #if block, with WS and explicit closures...
  test4(self)
#if block using $numOne...
  test5(self)
#if block using $zero...
  test6(self)
#if block using $emptyString...
  test7(self)
#if ...
  test8(self)
#if ...
  test9(self)
#if 'not' test, with #slurp...
    Inherited from OutputTest
  genClassCode(self)
  genModuleCode(self)
  searchList(self)
  settings(self)
  verify(self, input, output)
    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.

Class Variable Summary
    Inherited from OutputTest
bool convertEOLs = True
int DEBUGLEV = 0                                                                     
str report = '\nTemplate output mismatch: %(notes)s \n\n    ...
    Inherited from TestCase
NoneType name = None                                                                  

Method Details

test1(self)

simple #if block

test10(self)

#if block using $*emptyString

Cache tokens are ignored unless they are on top-level placeholders

test11(self)

#if block using $*5*emptyString

test12(self)

#if ... #else if ... #else ... block using a $emptyString
Same as test 8 but using else if instead of elif

test13(self)

#if# ... #else # ... block using a $emptyString with

test14(self)

#if <condition> then <true> else <false>

test15(self)

#if <condition> then <true> else <false>

test2(self)

simple #if block, with WS

test3(self)

simple #if block, with WS and explicit closures

test4(self)

#if block using $numOne

test5(self)

#if block using $zero

test6(self)

#if block using $emptyString

test7(self)

#if ... #else ... block using a $emptyString

test8(self)

#if ... #elif ... #else ... block using a $emptyString

test9(self)

#if 'not' test, with #slurp

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