@testing.requires_testing_data
def test_report_raw_psd_and_date():
    'Test report raw PSD and DATE_NONE functionality.'
    with pytest.raises(TypeError, match='dict'):
        Report(raw_psd='foo')
    tempdir = _TempDir()
    raw = read_raw_fif(raw_fname).crop(0, 1.0).load_data()
    raw_fname_new = op.join(tempdir, 'temp_raw.fif')
    raw.save(raw_fname_new)
    report = Report(raw_psd=True)
    report.parse_folder(data_path=tempdir, render_bem=False, on_error='raise')
    assert isinstance(report.html, list)
    assert ('PSD' in ''.join(report.html))
    assert ('GMT' in ''.join(report.html))
    report = Report()
    raw.anonymize()
    raw.save(raw_fname_new, overwrite=True)
    report.parse_folder(data_path=tempdir, render_bem=False, on_error='raise')
    assert isinstance(report.html, list)
    assert ('GMT' not in ''.join(report.html))
Test report raw PSD and DATE_NONE functionality.
@testing.requires_testing_data
def test_report_raw_psd_and_date():
    
    with pytest.raises(TypeError, match='dict'):
        Report(raw_psd='foo')
    tempdir = _TempDir()
    raw = read_raw_fif(raw_fname).crop(0, 1.0).load_data()
    raw_fname_new = op.join(tempdir, 'temp_raw.fif')
    raw.save(raw_fname_new)
    report = Report(raw_psd=True)
    report.parse_folder(data_path=tempdir, render_bem=False, on_error='raise')
    assert isinstance(report.html, list)
    assert ('PSD' in .join(report.html))
    assert ('GMT' in .join(report.html))
    report = Report()
    raw.anonymize()
    raw.save(raw_fname_new, overwrite=True)
    report.parse_folder(data_path=tempdir, render_bem=False, on_error='raise')
    assert isinstance(report.html, list)
    assert ('GMT' not in .join(report.html))