Package SimPy :: Module testSimPyTrace :: Class makeLevelTestcase
[hide private]
[frames] | no frames]

Class makeLevelTestcase

source code

       object --+    
                |    
unittest.TestCase --+
                    |
                   makeLevelTestcase

Nested Classes [hide private]

Inherited from unittest.TestCase: failureException


Instance Methods [hide private]
  testStatic(self)
Tests initialization of Level instances
  testConProdPrinciple(self)
Level: tests basic Producer/Consumer principles:
  testConProd1(self)
Level: tests put/get in 1 Producer/ 1 Consumer scenario
  testConProdM(self)
Level: tests put/get in multiple Producer/Consumer scenario
  testConProdPriorM(self)
Level: tests put/get in multiple Producer/Consumer scenario, with Producers having different priorities.
  testConPriorProdM(self)
Level: tests put/get in multiple Producer/Consumer scenario, with Consumers having different priorities.

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

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


Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

testStatic(self)

source code 
Tests initialization of Level instances

testConProdPrinciple(self)

source code 
Level: tests basic Producer/Consumer principles:
  • Consumers must not be waiting while Level buffer value > 0,
  • Producers must not be waiting while Level buffer value == 0

testConProd1(self)

source code 
Level: tests put/get in 1 Producer/ 1 Consumer scenario

testConProdM(self)

source code 
Level: tests put/get in multiple Producer/Consumer scenario

testConProdPriorM(self)

source code 
Level: tests put/get in multiple Producer/Consumer scenario, with Producers having different priorities. How: Producers forced to queue; all after first should be done in priority order

testConPriorProdM(self)

source code 
Level: tests put/get in multiple Producer/Consumer scenario, with Consumers having different priorities. How: Consumers forced to queue; all after first should be done in priority order