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()
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()
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()
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()
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()
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()