def __init__(self, annotation): self.annotation = annotation if self.annotation.document: self.document = DocumentHTMLPresenter(self.annotation.document) else: self.document = None
def presenter(self, **kwargs): return DocumentHTMLPresenter(mock.Mock(**kwargs))