#NEWLINE# def test_validate_invalid_status( self ) : #NEWLINE# #INDENT# expected = 'Result status has to be OK, ERROR or WARN, not InvalidStatus' #NEWLINE# result = server_plugins . Result ( ) #NEWLINE# result . result = copy . deepcopy ( self . result_to_validate ) #NEWLINE# result . result [ 'status' ] = 'InvalidStatus' #NEWLINE# with pytest . raises ( smoker_exceptions . ValidationError ) as exc_info : #NEWLINE# #INDENT# result . validate ( ) #NEWLINE# #UNINDENT# assert ( expected in exc_info . value )