@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_true((html in html_compare))
 assert_true(repr(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_true ( ( html in html_compare ) ) assert_true ( repr ( report ) )
test adding html str to mne report .