def test_get_spectra_unknown_method():
    tseries = np.array([[1, 2, 3], [4, 5, 6]])
    npt.assert_raises(ValueError,
                    tsa.get_spectra, tseries, method=dict(this_method='foo'))
Test that providing an unknown method to get_spectra rasies a ValueError
dataset/ETHPy150Open nipy/nitime/nitime/algorithms/tests/test_spectral.py/test_get_spectra_unknown_method