Package teamwork :: Package test :: Package math :: Module testPWL :: Class TestPWL
[hide private]
[frames] | no frames]

Class TestPWL

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   TestPWL
Known Subclasses:

Base class for testing PWL code. Intended to be abstract class

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Hook method for setting up the test fixture before exercising it.
source code
 
verifyVector(self, old, new)
Tests equality of given vectors
source code
 
verifyMatrix(self, old, new)
Tests equality of given matrices
source code
 
verifyPlane(self, old, new)
Tests equality of given planes
source code
 
verifyTree(self, old, new)
Tests equality of given trees
source code

Inherited from unittest.TestCase: __call__, __init__, __repr__, __str__, assertAlmostEqual, assertAlmostEquals, assertEqual, assertEquals, assertFalse, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertRaises, assertTrue, assert_, countTestCases, debug, defaultTestResult, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, tearDown

Inherited from unittest.TestCase (private): _exc_info

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
str[] features = []
a list of state features to use as test case
str[] agents = []
a list of entity names to use as test cases
int precision = 8
number of significant digits to check for equality
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Hook method for setting up the test fixture before exercising it.

Overrides: unittest.TestCase.setUp
(inherited documentation)

verifyVector(self, old, new)

source code 

Tests equality of given vectors

Parameters:

verifyMatrix(self, old, new)

source code 

Tests equality of given matrices

Parameters:

verifyPlane(self, old, new)

source code 

Tests equality of given planes

Parameters:

verifyTree(self, old, new)

source code 

Tests equality of given trees

Parameters: