#NEWLINE# def test_validate_action_result_should_have_status( self ) : #NEWLINE# #INDENT# action_result = { #NEWLINE# #INDENT# 'messages' : { #NEWLINE# #INDENT# 'info' : [ ] , #NEWLINE# 'warn' : [ ] , #NEWLINE# 'error' : [ ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# expected = "Action doesn't have status" #NEWLINE# result = server_plugins . Result ( ) #NEWLINE# result . result = copy . deepcopy ( self . result_to_validate ) #NEWLINE# result . result [ 'action' ] = exc_info #NEWLINE# with pytest . raises ( smoker_exceptions . ValidationError ) as exc_info : #NEWLINE# #INDENT# result . validate ( ) #NEWLINE# #UNINDENT# assert ( expected in exc_info . value )