Package teamwork :: Package test :: Package agent :: Module testLightweight :: Class TestPWLAgent
[hide private]
[frames] | no frames]

Class TestPWLAgent

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   TestPWLAgent

Uses the tiger scenario to test PWL policy generation

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Creates the instantiated scenario used for testing
source code
KeyedVector
generateState(self)
Returns: a random state vector for the scenario of interest
source code
 
testEstimator(self) source code
 
verifyEstimator(self, agent, actions) source code
 
testProject(self) source code
 
deepVerify(self, R) source code
 
verifyMax(self, raw, maxed) source code
 
verifyPolicy(self, policy=None, Vstar=None, debug=False) source code
 
verifySum(self, A, B, total) source code
 
verifyProduct(self, V, omega, product, debug=False) source code
 
verifyStar(self, star, old) source code
 
verifyPrune(self, table, old=None, inspect='rules') source code
 
_verifyPrune(self, table, beliefs, missing, old=None, inspect='rules') source code
 
DONTtestXML(self) 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]
  profile = False
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Creates the instantiated scenario used for testing

Overrides: unittest.TestCase.setUp

generateState(self)

source code 
Returns: KeyedVector
a random state vector for the scenario of interest