class_docstr: Different author, different style, different tests...
class_docstr_tok: ["Different","author",",","different","style",",","different","tests","..."]
docstr: Test that invalid cutoff argument raises ValueError.
docstr_tok: ["Test","that","invalid","cutoff","argument","raises","ValueError","."]
code: def test_bad_cutoff(self):
      """Test that invalid cutoff argument raises ValueError."""
      # cutoff values must be greater than 0 and less than 1.
      assert_raises(ValueError, firwin, 99, -0.5)
      assert_raises(ValueError, firwin, 99, 1.5)
      # Don't allow 0 or 1 in cutoff.
      assert_raises(ValueError, firwin, 99, [0, 0.5])
      assert_raises(ValueError, firwin, 99, [0.5, 1])
      # cutoff values must be strictly increasing.
      assert_raises(ValueError, firwin, 99, [0.1, 0.5, 0.2])
      assert_raises(ValueError, firwin, 99, [0.1, 0.5, 0.5])
      # Must have at least one cutoff value.
      assert_raises(ValueError, firwin, 99, [])
      # 2D array not allowed.
      assert_raises(ValueError, firwin, 99, [[0.1, 0.2], [0.3, 0.4]])
      # cutoff values must be less than nyq.
      assert_raises(ValueError, firwin, 99, 50.0, nyq=40)
      assert_raises(ValueError, firwin, 99, [10, 20, 30], nyq=25)
      assert_raises(ValueError, firwin, 99, 50.0, fs=80)
      assert_raises(ValueError, firwin, 99, [10, 20, 30], fs=50)
  
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy.testing import assert_almost_equal, assert_array_almost_equal, assert_equal, assert_, assert_allclose, assert_warns
  from pytest import raises
  from scipy.special import sinc
  from scipy.signal import kaiser_beta, kaiser_atten, kaiserord, firwin, firwin2, freqz, remez, firls, minimum_phase
label_desc: Use image node_id 6 for calling the TestFirWinMore obj's underlying member method code with example usage: obj.test_bad_cutoff() without return types