def METHOD_NAME(self):
    dsp = ossaudiodev.open("w")
    try:
        self.set_parameters(dsp)
        # Disabled because it fails under Linux 2.6 with ALSA's OSS
        # emulation layer.
        #self.set_bad_parameters(dsp)
    finally:
        dsp.close()
        self.assertTrue(dsp.closed)