コード例 #1
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()
コード例 #2
0
 def shouldCreateExpectedAndActualLabelInGreen(self):
     fix = Fixture()
     cell = Parse(tag="td", body="Oops.")
     cell.addToBody(fix.greenlabel("That's all right."))
     assert cell.body.find("That's all right") > -1
     assert cell.infoIsRight()
コード例 #3
0
 def shouldCreateExpectedAndActualLabelInRed(self):
     fix = Fixture()
     cell = Parse(tag="td", body="Oops.")
     cell.addToBody(fix.label("It's dead, Jim."))
     assert cell.body.find("It's dead, Jim") > -1
     assert cell.infoIsWrong()
コード例 #4
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()
コード例 #5
0
ファイル: FixtureTest.py プロジェクト: copyleftdev/pyfit
 def shouldCreateExpectedAndActualLabelInGreen(self):
     fix = Fixture()
     cell = Parse(tag="td", body="Oops.")
     cell.addToBody(fix.greenlabel("That's all right."))
     assert cell.body.find("That's all right") > -1
     assert cell.infoIsRight()
コード例 #6
0
ファイル: FixtureTest.py プロジェクト: copyleftdev/pyfit
 def shouldCreateExpectedAndActualLabelInRed(self):
     fix = Fixture()
     cell = Parse(tag="td", body="Oops.")
     cell.addToBody(fix.label("It's dead, Jim."))
     assert cell.body.find("It's dead, Jim") > -1
     assert cell.infoIsWrong()