@classmethod
def state_property(cls, state):
    """Create a property that returns a iterable of all terms in a state.

            >>> class MyTracker(Tracker):
            ...     pending = Tracker.state_property('pending')
            ...
        """
    return property(lambda self: self.in_state(state))
