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