Exemple #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()
Exemple #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()
Exemple #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()
Exemple #4
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()
Exemple #5
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()
Exemple #6
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()