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) 
示例#2
0
    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)
示例#3
0
 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()
示例#4
0
 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()
示例#5
0
 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()
示例#6
0
 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()