#NEWLINE# def test_adds_failure( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# raise ValueError ( ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# exc = sys . exc_info ( ) #NEWLINE# #UNINDENT# plugin = self . _make_one ( ) #NEWLINE# plugin . addFailure ( case . Test ( FakeTestCase ( ) ) , exc ) #NEWLINE# line = plugin . tracker . _test_cases [ 'FakeTestCase' ] [ 0 ] #NEWLINE# self . assertFalse ( line . ok )