def configure(self): if not self.should_succeed: raise InvalidRun('mock for invalid configure')
def configure(self): if self._should_fail: raise InvalidRun('mock for invalid configure')