def test_plot_drop_log():
 import matplotlib.pyplot as plt
 epochs = _get_epochs()
 assert_raises(ValueError, epochs.plot_drop_log)
 epochs.drop_bad()
 warnings.simplefilter('always', UserWarning)
 with warnings.catch_warnings(record=True):
  epochs.plot_drop_log()
  plot_drop_log([['One'], [], []])
  plot_drop_log([['One'], ['Two'], []])
  plot_drop_log([['One'], ['One', 'Two'], []])
 plt.close('all')

def test_plot_drop_log ( ) : import matplotlib . pyplot as plt epochs = _get_epochs ( ) assert_raises ( ValueError , epochs . plot_drop_log ) epochs . drop_bad ( ) warnings . simplefilter ( 'always' , UserWarning ) with warnings . catch_warnings ( record = True ) : epochs . plot_drop_log ( ) plot_drop_log ( [ [ 'One' ] , [ ] , [ ] ] ) plot_drop_log ( [ [ 'One' ] , [ 'Two' ] , [ ] ] ) plot_drop_log ( [ [ 'One' ] , [ 'One' , 'Two' ] , [ ] ] ) plt . close ( 'all' )
test plotting a drop log .