#NEWLINE# @ patch ( 'ocw_config_runner.configuration_parsing.logger' ) #NEWLINE# def test_missing_keys_contour( self , mock_logger ) : #NEWLINE# #INDENT# ret = parser . _valid_plot_config_data ( self . missing_keys_contour ) #NEWLINE# present_keys = set ( self . missing_keys_contour . keys ( ) ) #NEWLINE# missing_keys = ( self . required_contour_keys - present_keys ) #NEWLINE# missing = sorted ( list ( missing_keys ) ) #NEWLINE# err = 'Plot config does not contain required keys. The following keys are missing: {}' . format ( ', ' . join ( self ) ) #NEWLINE# mock_logger . error . assert_called_with ( err )