Beispiel #1
0
 def testExceptionWhereItsAllRight(self):
     cell = Parse(tag="td", body="Oops!")
     cell.exception("Clean it up!", bkg="right")
     assert cell.tagIsRight()
Beispiel #2
0
 def testExceptionWhereItsWrong(self):
     cell = Parse(tag="td", body="Oops!")
     cell.exception("Clean it up!", bkg="wrong")
     assert cell.tagIsWrong()
Beispiel #3
0
 def testExceptionWhereMessageIsNotStackTrace(self):
     cell = Parse(tag="td", body="Oops!")
     cell.exception("Darn it!", exc=False)
     assert cell.body == "Oops!<hr>Darn it!"
Beispiel #4
0
 def testExceptionWhereItsAllRight(self):
     cell = Parse(tag="td", body="Oops!")
     cell.exception("Clean it up!", bkg="right")
     assert cell.tagIsRight()
Beispiel #5
0
 def testExceptionWhereItsWrong(self):
     cell = Parse(tag="td", body="Oops!")
     cell.exception("Clean it up!", bkg="wrong")
     assert cell.tagIsWrong()
Beispiel #6
0
 def testExceptionWhereMessageIsNotStackTrace(self):
     cell = Parse(tag="td", body="Oops!")
     cell.exception("Darn it!", exc=False)
     assert cell.body == "Oops!<hr>Darn it!"