def METHOD_NAME(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))