def METHOD_NAME(
    self, m_sleep, m_attach_token_info, FakeConfig
):
    magic_token = "test-id"
    m_attach_token_info.side_effect = [{}, {}, {}]
    options = MagicAttachWaitOptions(magic_token=magic_token)
    with pytest.raises(exceptions.MagicAttachTokenError):
        with mock.patch.object(api_wait, "MAXIMUM_ATTEMPTS", 2):
            _wait(options, FakeConfig())