#NEWLINE# def test_validate_component_result_should_have_message( self ) : #NEWLINE# #INDENT# component_results = { #NEWLINE# #INDENT# 'Unit tests' : { #NEWLINE# #INDENT# 'status' : 'OK' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# expected = "Component Unit tests doesn't have message" #NEWLINE# result = server_plugins . Result ( ) #NEWLINE# result . result = copy . deepcopy ( self . result_to_validate ) #NEWLINE# result . result [ 'componentResults' ] = exc_info #NEWLINE# with pytest . raises ( smoker_exceptions . ValidationError ) as exc_info : #NEWLINE# #INDENT# result . validate ( ) #NEWLINE# #UNINDENT# assert ( expected in exc_info . value )