'Wait until `state` occurs.
Arguments:
state (str): State we wait for.'

def wait_for_state(self, state):

    self._wait_for((lambda : (self.state == state)), 'State    is    {state}'.format(state=state))
