the test should be assert raises if picked type not in dict; not assert raises if not picked type gets no dict. 

On 18.01.2013, at 08:46, Eric89GXL <notifications@github.com> wrote:

> In mne/tests/test_viz.py:
> 
> > +
> > +def test_plot_topo_image_epochs():
> > +    """Test plotting of epochs image topography
> > +    """
> > +    title = 'ERF images - MNE sample data'
> > +    plot_topo_image_epochs(epochs, layout, sigma=0.5, vmin=-200, vmax=200,
> > +                           colorbar=True, title=title)
> > +
> > +
> > +def test_plot_evoked():
> > +    """Test plotting of evoked
> > +    """
> > +    evoked.plot(proj=True, hline=[1])
> > +    # Assert we get an error with incorrect dict specification
> > +    assert_raises(ValueError, plot_evoked, evoked, hline=[1],
> > +                  units=dict(eeg=10))
> Ahh, good point. The test runs, so I assume there is a bug in the current master...
> 
> —
> Reply to this email directly or view it on GitHub.
>