def METHOD_NAME(self):
    microphone.haveMic = False
    with pytest.raises(microphone.MicrophoneError):
        microphone.AdvAudioCapture(autoLog=False)
    microphone.haveMic = True
    microphone.switchOn(16000, 1, 2048)
    microphone.switchOn(48000)
    mic = microphone.AdvAudioCapture(saveDir=self.tmp, autoLog=False)
    mic = microphone.AdvAudioCapture(saveDir=self.tmp+'_test', autoLog=False)
    mic.record(.10, block=False)  # returns immediately
    core.wait(.02)
    mic.stop()
    mic.reset()
    mic.record(0.2, block=True)
    assert os.path.isfile(mic.savedFile)