def METHOD_NAME(self):
    processor = WhisperProcessor(tokenizer=self.get_tokenizer(), feature_extractor=self.get_feature_extractor())
    def _test_prompt_error_raised_helper(prompt, special_token):
        with pytest.raises(ValueError) as excinfo:
            processor.get_prompt_ids(prompt)
        expected = f"Encountered text in the prompt corresponding to disallowed special token: {special_token}."
        self.assertEqual(expected, str(excinfo.value))
    _test_prompt_error_raised_helper("<|startofprev|> test", "<|startofprev|>")
    _test_prompt_error_raised_helper("test <|notimestamps|>", "<|notimestamps|>")
    _test_prompt_error_raised_helper("test <|zh|> test <|transcribe|>", "<|zh|>")