correct syntax error
svn: r16438
This commit is contained in:
parent
24959d62f7
commit
ad0e1c0a29
@ -27,24 +27,22 @@ class ErrorReportAssistantTest(TestCaseBase):
|
|||||||
|
|
||||||
def test_buffer_recall(self):
|
def test_buffer_recall(self):
|
||||||
"""Test that simple recall of messages works."""
|
"""Test that simple recall of messages works."""
|
||||||
|
|
||||||
rh = RotateHandler(10)
|
rh = RotateHandler(10)
|
||||||
l = logging.getLogger("ErrorReportAssistantTest")
|
l = logging.getLogger("ErrorReportAssistantTest")
|
||||||
l.setLevel(logging.DEBUG)
|
l.setLevel(logging.DEBUG)
|
||||||
|
|
||||||
l.addHandler(rh)
|
l.addHandler(rh)
|
||||||
l.info("info message")
|
l.info("info message")
|
||||||
|
|
||||||
error_detail="Test error"
|
error_detail="Test error"
|
||||||
as = _ErrorReportAssistant.ErrorReportAssistant(error_detail=error_detail,
|
ass = _ErrorReportAssistant.ErrorReportAssistant(error_detail=error_detail,
|
||||||
rotate_handler=rh)
|
rotate_handler=rh)
|
||||||
|
|
||||||
assert as._error_detail == error_detail
|
assert ass._error_detail == error_detail
|
||||||
|
|
||||||
l.removeHandler(rh)
|
l.removeHandler(rh)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def testSuite():
|
def testSuite():
|
||||||
suite = unittest.makeSuite(ErrorReportAssistantTest,'test')
|
suite = unittest.makeSuite(ErrorReportAssistantTest,'test')
|
||||||
return suite
|
return suite
|
||||||
|
Loading…
Reference in New Issue
Block a user