Package SimPy :: Module testSimPyTrace :: Class makeTimeoutTestcase |
[hide private]
[frames] | no frames]

# Class makeTimeoutTestcase

source code

           object --+
                    |
    unittest.TestCase --+
                        |
                       makeTimeoutTestcase

Tests of "yield (request,self,res),(hold,self,delay)" timeout reneging command

Nested Classes | [hide private]
Inherited from `unittest.TestCase`: `failureException`

Instance Methods | [hide private]
`` | testNoTimeout(self) Test that resource gets acquired without timeout
`` | testNoTimeoutM(self) Test that resource gets acquired without timeout.
`` | testTimeout1(self) Test that timeout occurs when resource busy
`` | testTimeout1M(self) Test that timeout occurs when resource busy.
`` | testTimeout_MP(self) Test that timeout occurs when resource busy.
`` | testTimeout2(self) Test that timeout occurs when resource has no capacity free
`` | testTimeout2M(self) Test that timeout occurs when resource has no capacity free.
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]

### testNoTimeout(self) | source code
Test that resource gets acquired without timeout

### testNoTimeoutM(self) | source code
Test that resource gets acquired without timeout. Resource monitored.

### testTimeout1(self) | source code
Test that timeout occurs when resource busy

### testTimeout1M(self) | source code
Test that timeout occurs when resource busy. Resource monitored.

### testTimeout_MP(self) | source code
Test that timeout occurs when resource busy. Resource monitored. Requests with priority and preemption.

### testTimeout2(self) | source code
Test that timeout occurs when resource has no capacity free

### testTimeout2M(self) | source code
Test that timeout occurs when resource has no capacity free. Resource monitored.