Parametrized RuleBasedStateMachine

You can set self.queue in an initialize method rather than __init__, using a suitable integers strategy for the capacity.