Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 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()
Ejemplo n.º 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()