Package SimPy :: Module testSimPy :: 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 | source code
testrequest(self) Test request | source code
testrequest2(self) Test request2 with capacity = 1 | source code
testrequest3(self) Test request3 with capacity = 1 several requests | source code
testrequest4(self) Test request4 with capacity = 2 several requests | source code
testrequestPriority(self) Test PriorityQ, with no preemption, 0 capacity | source code
testrequestPriority1(self) Test PriorityQ, with no preemption, capacity == 1 | source code
testrequestPriority2(self) Test PriorityQ, with preemption, capacity == 1 | source code
testrequestPriority3(self) Test preemption of preemptor | source code
testrequestNestedPreempt(self) Test that a process can preempt another process holding multiple resources | source code
testmonitored(self) test monitoring of number in the two queues, waitQ and activeQ | 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__`