Package SimPy :: Module testSimPy :: 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 | source code
testNoTimeoutM(self) Test that resource gets acquired without timeout. | source code
testTimeout1(self) Test that timeout occurs when resource busy | source code
testTimeout1M(self) Test that timeout occurs when resource busy. | source code
testTimeout_MP(self) Test that timeout occurs when resource busy. | source code
testTimeout2(self) Test that timeout occurs when resource has no capacity free | source code
testTimeout2M(self) Test that timeout occurs when resource has no capacity free. | 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]

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

### 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.

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