#NEWLINE# def test_bad_traceback( self ) : #NEWLINE# #INDENT# result = "JJackson's SSN: 555-55-5555" #NEWLINE# try : #NEWLINE# #INDENT# assert isinstance ( result , dict ) , ( 'received an invalid response of type %s: %s' % ( type ( e ) , repr ( result ) ) ) #NEWLINE# #UNINDENT# except AssertionError as e : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# self . assertIn ( result , e . message ) #NEWLINE# self . assertNotIn ( result , clean_exception ( e ) . message )