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'))
Generic check pattern all calltip tests will use
dataset/ETHPy150Open nipy/nitime/nitime/algorithms/tests/test_spectral.py/test_get_spectra_unknown_method--crossover with--dataset/ETHPy150Open ipython/ipython-py3k/IPython/core/tests/test_oinspect.py/check_calltip