    def test_simple_chain(self):
        '''Test most basic transition chain.'''
        states = ['one', 'two', 'three']
        transitions = [
            {'source': 'one', 'dest': 'two'},
            {'source': 'two', 'dest': 'three'},
            {'source': 'three', 'dest': 'one'},
        ]
        sm = StateMachine(states, transitions, 'one')
        assert(str(sm.state) == 'one')
        sm.step()
        assert(str(sm.state) == 'two')
        sm.step()
        assert(str(sm.state) == 'three')
        sm.step()
        assert(str(sm.state) == 'one')
Test most basic transition chain.
tests/state_machine_test.py