Package SimPy :: Module testSimPyStep :: 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 | source code
testConProdPrinciple(self) Level: tests basic Producer / Consumer principles: | source code
testConProd1(self) Level: tests put / get in 1 Producer / 1 Consumer scenario | source code
testConProdM(self) Level: tests put / get in multiple Producer / Consumer scenario | source code
testConProdPriorM(self) Level: tests put / get in multiple Producer / Consumer scenario, with Producers having different priorities. | source code
testConPriorProdM(self) Level: tests put / get in multiple Producer / Consumer scenario, with Consumers having different priorities. | 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`, `setUp`, `shortDescription`, `tearDown` Inherited from `unittest.TestCase` (private): `_exc_info` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### 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

### 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