Package SimPy :: Module testSimPyRT :: Class makeResourcetestcase

[hide private]
[frames] | no frames]

# Class makeResourcetestcase

source code

           object --+
                    |
    unittest.TestCase --+
                        |
                       makeResourcetestcase

First simple tests of Resources

Nested Classes | [hide private]

Inherited from `unittest.TestCase`: `failureException`

Instance Methods | [hide private]

`` | testInit(self) Test initialisation
`` | testrequest(self) Test request
`` | testrequest2(self) Test request2 with capacity = 1
`` | testrequest3(self) Test request3 with capacity = 1 several requests
`` | testrequest4(self) Test request4 with capacity = 2 several requests
`` | testrequestPriority(self) Test PriorityQ, with no preemption, 0 capacity
`` | testrequestPriority1(self) Test PriorityQ, with no preemption, capacity == 1
`` | testrequestPriority2(self) Test PriorityQ, with preemption, capacity == 1
`` | testrequestPriority3(self) Test preemption of preemptor
`` | testmonitored(self) test monitoring of number in the two queues, waitQ and activeQ

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]

### testInit(self)

source code

Test initialisation

### testrequest(self)

source code

Test request

### testrequest2(self)

source code

Test request2 with capacity = 1

### testrequest3(self)

source code

Test request3 with capacity = 1 several requests

### testrequest4(self)

source code

Test request4 with capacity = 2 several requests

### testrequestPriority(self)

source code

Test PriorityQ, with no preemption, 0 capacity

### testrequestPriority1(self)

source code

Test PriorityQ, with no preemption, capacity == 1

### testrequestPriority2(self)

source code

Test PriorityQ, with preemption, capacity == 1

### testrequestPriority3(self)

source code

Test preemption of preemptor

### testmonitored(self)

source code

test monitoring of number in the two queues, waitQ and activeQ