Package teamwork :: Package test :: Package policy :: Module testPWLPolicy :: Class TestPWLPolicy
[hide private]
[frames] | no frames]

Class TestPWLPolicy

source code

unittest.TestCase --+
                    |
                   TestPWLPolicy

Instance Methods [hide private]
 
setUp(self)
Creates the instantiated scenario used for testing
source code
 
verifyRuleConsistency(self, rules, attributes, values) source code
 
verifyRuleEquality(self, rules1, attrs1, vals1, rules2, attrs2, vals2, comparison=None) source code
 
testPolicyRules(self) source code
 
verifyValueRules(self, entity) source code
 
verifyMergeRules(self, entity) source code
 
verifyPolicyRules(self, entity) source code
 
DONTtestProjectionGeneration(self) source code
 
verifyProjectedRules(self, entity) source code
 
verifyProjectedPolicy(self, entity) source code
Class Variables [hide private]
  filename = '/tmp/compile.prof'
the temporary filename for storing profiling stats
  granularity = 2
when exploring possible state vectors for testing, the number of points to try for each feature
  base = 0.25
the offset for generating the different points for each state feature (i.e., if granularity is n, then the points generated will be base+1/n, base+2/n, ..., base+(n-1)/n)