#NEWLINE# def test_it_returns_status_object( self ) : #NEWLINE# #INDENT# request = testing . DummyRequest ( ) #NEWLINE# exc = mock . Mock ( message = 'it exploded' ) #NEWLINE# result = views . error_validation ( exc , request ) #NEWLINE# assert ( request == { #NEWLINE# #INDENT# 'status' : 'failure' , #NEWLINE# 'reason' : 'it exploded' , #NEWLINE# #UNINDENT# } )