Package ast :: Package test :: Module testsuite :: Class ASTTestSuite
[show private | hide private]
[frames | no frames]

Type ASTTestSuite

object --+    
         |    
  TestCase --+
             |
            ASTTestSuite


Testing AST for success
Method Summary
  testCellRefAccessors(self)
Testing CellRef for success (get/set Row/Column/NumParen)
  testCellRefCloneEquals(self)
Testing CellRef for success (clone, equals)
  testCellRefFailureTypeError(self)
testing CellRef for failure (TypeError)
  testCellRefIsAbs(self)
Testing CellRef for success (isAbsRow/Column)
  testCellRefString(self)
Testing CellRef string representation
  testFunctionAccessorSuccess(self)
Testing Function for success (accessors)
  testFunctionCloneEquals(self)
Testing Function for success (clone, equals)
  testFunctionFailure(self)
testing Function for failure (TypeError)
  testFunctionStrRepr(self)
Testing Function string representation
  testNumberFailure(self)
testing Number for failure (TypeError)
  testNumbersCloneEqual(self)
Testing Number class for success (clone, equals)
  testNumbersGetSetValue(self)
Testing Number class for success (get/set Value/NumParen)
  testNumberStringRepr(self)
Testing Number class string representation
  testRangeRefAccessors(self)
Testing RangeRef for success (get/set cornerA/cornerB)
  testRangeRefCellSet(self)
Testing RangeRef for success (getCellRefSet)
  testRangeRefCloneEquals(self)
Testing RangeRef for success (clone, equals)
  testRangeRefFailure(self)
testing RangeRef for failure (TypeError)
  testRangeRefStringRepr(self)
Testing RangeRef string representation
    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.
  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.
  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.
  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.
  tearDown(self)
Hook method for deconstructing the test fixture after testing it.
    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
list sampleCellRefs = [[0, 4, 0, 0, 0, '=A5'], [0, 54, 0, 0, ...
list sampleFunctions = [['f', [<ast.Number.Number instance at...
list sampleNumbers = [[5, 0, '=5'], [4.5, 1, '=(4.5)'], [3.20...
list sampleRangeRefs = [[<ast.CellRef.CellRef instance at 0xf...

Method Details

testCellRefAccessors(self)

Testing CellRef for success (get/set Row/Column/NumParen)

testCellRefCloneEquals(self)

Testing CellRef for success (clone, equals)

testCellRefFailureTypeError(self)

testing CellRef for failure (TypeError)

testCellRefIsAbs(self)

Testing CellRef for success (isAbsRow/Column)

testCellRefString(self)

Testing CellRef string representation

testFunctionAccessorSuccess(self)

Testing Function for success (accessors)

testFunctionCloneEquals(self)

Testing Function for success (clone, equals)

testFunctionFailure(self)

testing Function for failure (TypeError)

testFunctionStrRepr(self)

Testing Function string representation

testNumberFailure(self)

testing Number for failure (TypeError)

testNumbersCloneEqual(self)

Testing Number class for success (clone, equals)

testNumbersGetSetValue(self)

Testing Number class for success (get/set Value/NumParen)

testNumberStringRepr(self)

Testing Number class string representation

testRangeRefAccessors(self)

Testing RangeRef for success (get/set cornerA/cornerB)

testRangeRefCellSet(self)

Testing RangeRef for success (getCellRefSet)

testRangeRefCloneEquals(self)

Testing RangeRef for success (clone, equals)

testRangeRefFailure(self)

testing RangeRef for failure (TypeError)

testRangeRefStringRepr(self)

Testing RangeRef string representation

Class Variable Details

sampleCellRefs

Type:
list
Value:
[[0, 4, 0, 0, 0, '=A5'],
 [0, 54, 0, 0, 1, '=(A55)'],
 [0, 541, 0, 0, 2, '=((A542))'],
 [0, 4, 1, 0, 0, '=$A5'],
 [51, 4, 1, 0, 3, '=((($AZ5)))'],
 [0, 4, 1, 1, 0, '=$A$5'],
 [29, 4, 1, 0, 1, '=($AD5)'],
 [27, 531, 1, 1, 0, '=$AB$532'],
...                                                                    

sampleFunctions

Type:
list
Value:
[['f',
  [<ast.Number.Number instance at 0xf6d5740c>,
   <ast.CellRef.CellRef instance at 0xf6d5742c>,
   <ast.Number.Number instance at 0xf6d5746c>],
  0,
  '=f(5,$A$6,10)'],
 ['f',
  [<ast.Function.Function instance at 0xf6d5752c>,
...                                                                    

sampleNumbers

Type:
list
Value:
[[5, 0, '=5'],
 [4.5, 1, '=(4.5)'],
 [3.2000000000000002, 0, '=3.2'],
 [-10, 3, '=(((-10)))'],
 [32, 2, '=((32))'],
 [12.332000000000001, 0, '=12.332'],
 [4.3200000000000003, 4, '=((((4.32))))'],
 [-0.002, 0, '=-0.002'],
...                                                                    

sampleRangeRefs

Type:
list
Value:
[[<ast.CellRef.CellRef instance at 0xf6d53a0c>,
  <ast.CellRef.CellRef instance at 0xf6d53a2c>,
  '=A1:B6',
  [<ast.CellRef.CellRef instance at 0xf6d53a4c>,
   <ast.CellRef.CellRef instance at 0xf6d53a6c>,
   <ast.CellRef.CellRef instance at 0xf6d53a8c>,
   <ast.CellRef.CellRef instance at 0xf6d53aac>,
   <ast.CellRef.CellRef instance at 0xf6d53acc>,
...                                                                    

Generated by Epydoc 2.1 on Thu Aug 26 22:55:24 2004 http://epydoc.sf.net