def testExceptionWhereItsAllRight(self): cell = Parse(tag="td", body="Oops!") cell.exception("Clean it up!", bkg="right") assert cell.tagIsRight()
def testExceptionWhereItsWrong(self): cell = Parse(tag="td", body="Oops!") cell.exception("Clean it up!", bkg="wrong") assert cell.tagIsWrong()
def testExceptionWhereMessageIsNotStackTrace(self): cell = Parse(tag="td", body="Oops!") cell.exception("Darn it!", exc=False) assert cell.body == "Oops!<hr>Darn it!"
def testExceptionWhereItsAllRight(self): cell = Parse(tag="td", body="Oops!") cell.exception("Clean it up!", bkg="right") assert cell.tagIsRight()
def testExceptionWhereItsWrong(self): cell = Parse(tag="td", body="Oops!") cell.exception("Clean it up!", bkg="wrong") assert cell.tagIsWrong()
def testExceptionWhereMessageIsNotStackTrace(self): cell = Parse(tag="td", body="Oops!") cell.exception("Darn it!", exc=False) assert cell.body == "Oops!<hr>Darn it!"