'Raises an Error if the state of this range is not in states.'

def _AssertInState(self, *states):

    if (not (self.state in states)):
        raise BadStateError(('%s:%s    not    in    %s' % (str(self), self.state_namer(self.state), map(self.state_namer, states))))
