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)
def shouldGetTheInfoText(self): fix = Fixture() cell = Parse(tag="td", body="It's cold out there.") cell.addToBody(fix.info("Well, dress warmly.")) assert cell.body.find("Well, dress warmly.") > -1 assert cell.infoIsIgnored()
def shouldAddTextOnInfo(self): fix = Fixture() cell = Parse(tag="td", body="It's cold out there.") fix.info(cell, "Well, dress warmly.") assert cell.body.find("Well, dress warmly.") > -1 assert cell.infoIsIgnored()