#NEWLINE# def test_adds_error( self ) : #NEWLINE# #INDENT# result = self . _make_one ( ) #NEWLINE# ex = Exception ( ) #NEWLINE# ex . __cause__ = None #NEWLINE# result . addError ( FakeTestCase ( ) , ( None , ex , None ) ) #NEWLINE# self . assertEqual ( len ( result . tracker . _test_cases [ 'FakeTestCase' ] ) , 1 )