def METHOD_NAME(self, mock_load_raw):
    """Test do not ignore specific warnings."""
    mock_load_raw.side_effect = self.load_with_warning
    ignore_warnings = [{'message': "non-relevant warning"}]
    # Warning is not ignored -> assert warning has been issued
    with self.assertWarns(UserWarning):
        cubes = load('myfilename', ignore_warnings=ignore_warnings)
    # Check output
    self.assertEqual(len(cubes), 1)
    self.assertEqual(cubes[0].attributes, {'source_file': 'myfilename'})