Package SimPy :: Module testSimPyRT :: Class makeStoreTestcase

[hide private]
[frames] | no frames]

# Class makeStoreTestcase

source code

           object --+
                    |
    unittest.TestCase --+
                        |
                       makeStoreTestcase

Nested Classes | [hide private]

Inherited from `unittest.TestCase`: `failureException`

Instance Methods | [hide private]

`` | testStatic(self) Store: tests initialization of Store instances
`` | testConProdPrinciple(self) Store: tests basic Producer/Consumer principles:
`` | testConProd1(self) Store: tests put/get in 1 Producer/ 1 Consumer scenario
`` | testConProdM(self) Store: tests put/get in multiple Producer/Consumer scenario
`` | testConProdPriorM(self) Store: Tests put/get in multiple Producer/Consumer scenario, with Producers having different priorities.
`` | testConPriorProdM(self) Tests put/get in multiple Producer/Consumer scenario, with Consumers having different priorities.
`` | testBufferSort(self) Tests the optional sorting of theBuffer by applying a user-defined sort function.
`` | testBufferFilter(self) Tests get from a Store with a filter function

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

Store: tests initialization of Store instances

### testConProdPrinciple(self)

source code

Store: tests basic Producer/Consumer principles:

- Consumers must not be waiting while items in Store buffer,
- Producers must not be waiting while space available in Store buffer

### testConProd1(self)

source code

Store: tests put/get in 1 Producer/ 1 Consumer scenario

### testConProdM(self)

source code

Store: tests put/get in multiple Producer/Consumer scenario

### testConProdPriorM(self)

source code

Store: 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

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

### testBufferSort(self)

source code

Tests the optional sorting of theBuffer by applying a user-defined sort function.

### testBufferFilter(self)

source code

Tests get from a Store with a filter function