#NEWLINE# def test_capturesError( self ) : #NEWLINE# #INDENT# '\n        Chek that a L{LoggedSuite} reports any logged errors to its result.\n        ' #NEWLINE# result = reporter . TestResult ( ) #NEWLINE# suite = runner . LoggedSuite ( [ BreakingSuite ( ) ] ) #NEWLINE# suite . run ( result ) #NEWLINE# self . assertEqual ( len ( result . errors ) , 1 ) #NEWLINE# self . assertEqual ( result . errors [ 0 ] [ 0 ] . id ( ) , runner . NOT_IN_TEST ) #NEWLINE# self . failUnless ( result . errors [ 0 ] [ 1 ] . check ( RuntimeError ) )