Package SimPy :: Module testSimPyRT :: 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__`, `__eq__`, `__hash__`, `__init__`, `__ne__`, `__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__`, `__format__`, `__getattribute__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`, `__sizeof__`, `__subclasshook__`

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