def shouldAnnotateOnErrorCall(self): fix = Fixture() cell = Parse(tag="td", body="Oops.") fix.error(cell, "Not good!") assert cell.body.find("Not good!") > -1 assert cell.tagIsError() assert fix.counts.exceptions == 1
def Output(self): parse = Parse(self.OriginalHTML, ["td"]) testbed = Fixture() if self.Annotation == "right": testbed.right(parse) if self.Annotation == "wrong": testbed.wrong(parse, self.Text) if self.Annotation == "error": testbed.error(parse, self.Text) if self.Annotation == "info": testbed.info(parse, self.Text) if self.Annotation == "ignore": testbed.ignore(parse) return self.GenerateOutput(parse)