#NEWLINE# @ patch ( 'ocw_config_runner.configuration_parsing.logger' ) #NEWLINE# def test_invalid_local_config_multi_file( self , mock_logger ) : #NEWLINE# #INDENT# parser . _valid_dataset_config_data ( self . invalid_local_multi ) #NEWLINE# present_keys = set ( self . invalid_local_multi . keys ( ) ) #NEWLINE# missing_keys = ( self . required_local_keys - present_keys ) #NEWLINE# missing = sorted ( list ( missing ) ) #NEWLINE# error = 'Dataset does not contain required keys. The following keys are missing: {}' . format ( ', ' . join ( missing ) ) #NEWLINE# mock_logger . error . assert_called_with ( error )