コード例 #1
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) 
コード例 #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
ファイル: FixtureTest.py プロジェクト: copyleftdev/pyfit
 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
ファイル: FixtureTest.py プロジェクト: copyleftdev/pyfit
 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()