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