def METHOD_NAME(self):
    """link is broken"""
    from urllib.error import HTTPError
    # the backend returns status 400 if we try to expand a broken _link
    self.assertRaises(HTTPError, osc.core.set_link_rev, 'http://localhost', 'osctest', 'simple', expand=True)