'Non-blocking, non-synchronized test to determine if we are in the given state.
Use `StateMachine.ensure(state)` to wait until the machine enters a certain state.'

def __getitem__(self, state):

    return (self.__current_state == state)
