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