def get_document(self, id): with self.browser: bill = self.browser.get_document(id) if not bill: raise DocumentNotFound() else: return bill
def get_document(self, id): return find_object(self.iter_documents(None), id=id, error=DocumentNotFound())
def get_document(self, id): with self.browser: bill = self.browser.get_document(id) if not bill: raise DocumentNotFound() else: return bill
def get_document(self, id): return find_object(self.iter_documents(None), id=id, error=DocumentNotFound())