@testing.requires_testing_data
@requires_nibabel()
def test_add_htmls_to_section():
    'Test adding html str to mne report.'
    report = Report(info_fname=raw_fname, subject='sample', subjects_dir=subjects_dir)
    html = '<b>MNE-Python is AWESOME</b>'
    (caption, section) = ('html', 'html_section')
    report.add_htmls_to_section(html, caption, section)
    idx = report._sectionlabels.index(('report_' + section))
    html_compare = report.html[idx]
    assert (html in html_compare)
    assert repr(report)
Test adding html str to mne report.
@testing.requires_testing_data
@requires_nibabel()
def test_add_htmls_to_section():
    
    report = Report(info_fname=raw_fname, subject='sample', subjects_dir=subjects_dir)
    html = '<b>MNE-Python is AWESOME</b>'
    (caption, section) = ('html', 'html_section')
    report.add_htmls_to_section(html, caption, section)
    idx = report._sectionlabels.index(('report_' + section))
    html_compare = report.html[idx]
    assert (html in html_compare)
    assert repr(report)