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

# Class makePStatetestcase

source code

           object --+
                    |
    unittest.TestCase --+
                        |
                       makePStatetestcase

Tests states and state transitions as defined in SEP003

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

Instance Methods | [hide private]
`` | testState1(self) Tests state transitions by hold
`` | testState2(self) Tests state transitions by activate and passivate
`` | testState3(self) Tests state transitions by cancel()
`` | testState4(self) Test request/release state transitions
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]

### testState1(self) | source code
Tests state transitions by hold

### testState2(self) | source code
Tests state transitions by activate and passivate

### testState3(self) | source code
Tests state transitions by cancel()

### testState4(self) | source code
Test request/release state transitions