#NEWLINE# def test_failure( self ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( 1 / 0 ) #NEWLINE# #UNINDENT# except ZeroDivisionError : #NEWLINE# #INDENT# f = Failure ( ) #NEWLINE# #UNINDENT# d = defer . fail ( self ) #NEWLINE# self . assertThat ( ( lambda : _spinner . extract_result ( d ) ) , Raises ( MatchesException ( ZeroDivisionError ) ) )