def get_issue(self, number): if number not in _pull_request_state: raise UnknownObjectException(404, 'not found') return MockIssue()