def METHOD_NAME(self, dsp):
    # Now try some configurations that are presumably bogus: eg. 300
    # channels currently exceeds even Hollywood's ambitions, and
    # negative sampling rate is utter nonsense.  setparameters() should
    # accept these in non-strict mode, returning something other than
    # was requested, but should barf in strict mode.
    fmt = AFMT_S16_NE
    rate = 44100
    channels = 2
    for config in [(fmt, 300, rate),       # ridiculous nchannels
                   (fmt, -5, rate),        # impossible nchannels
                   (fmt, channels, -50),   # impossible rate
                  ]:
        (fmt, channels, rate) = config
        result = dsp.setparameters(fmt, channels, rate, False)
        self.assertNotEqual(result, config,
                         "unexpectedly got requested configuration")
        try:
            result = dsp.setparameters(fmt, channels, rate, True)
        except ossaudiodev.OSSAudioError, err:
            pass
        else:
            self.fail("expected OSSAudioError")