コード例 #1
0
ファイル: ParseTest.py プロジェクト: radiocutfm/pyfit
 def testExceptionWhereItsAllRight(self):
     cell = Parse(tag="td", body="Oops!")
     cell.exception("Clean it up!", bkg="right")
     assert cell.tagIsRight()
コード例 #2
0
ファイル: ParseTest.py プロジェクト: radiocutfm/pyfit
 def testExceptionWhereItsWrong(self):
     cell = Parse(tag="td", body="Oops!")
     cell.exception("Clean it up!", bkg="wrong")
     assert cell.tagIsWrong()
コード例 #3
0
ファイル: ParseTest.py プロジェクト: radiocutfm/pyfit
 def testExceptionWhereMessageIsNotStackTrace(self):
     cell = Parse(tag="td", body="Oops!")
     cell.exception("Darn it!", exc=False)
     assert cell.body == "Oops!<hr>Darn it!"
コード例 #4
0
ファイル: ParseTest.py プロジェクト: copyleftdev/pyfit
 def testExceptionWhereItsAllRight(self):
     cell = Parse(tag="td", body="Oops!")
     cell.exception("Clean it up!", bkg="right")
     assert cell.tagIsRight()
コード例 #5
0
ファイル: ParseTest.py プロジェクト: copyleftdev/pyfit
 def testExceptionWhereItsWrong(self):
     cell = Parse(tag="td", body="Oops!")
     cell.exception("Clean it up!", bkg="wrong")
     assert cell.tagIsWrong()
コード例 #6
0
ファイル: ParseTest.py プロジェクト: copyleftdev/pyfit
 def testExceptionWhereMessageIsNotStackTrace(self):
     cell = Parse(tag="td", body="Oops!")
     cell.exception("Darn it!", exc=False)
     assert cell.body == "Oops!<hr>Darn it!"