def METHOD_NAME(self):
    """
    Assert that exception is raised
    when invalid url is specified
    """
    project = models.Project(
        homepage="https://git.sr.ht/~sircmpwn/hare",
        name="invalid",
        backend=BACKEND,
    )
    exp_url = "https://git.sr.ht/~sircmpwn/hare/refs/rss.xml"
    with mock.patch("anitya.lib.backends.BaseBackend.call_url") as m_call:
        m_call.return_value = mock.Mock(status_code=404)
        self.assertRaises(
            AnityaPluginException, backend.SourceHutBackend.get_versions, project
        )
        m_call.assert_called_with(exp_url, None)