def METHOD_NAME(self, model: invites.InviteGuild):
    model.banner_hash = "a_18dnf8dfbakfdh"
    with mock.patch.object(
        routes, "CDN_GUILD_BANNER", new=mock.Mock(compile_to_file=mock.Mock(return_value="file"))
    ) as route:
        assert model.make_banner_url(ext=None, size=4096) == "file"
    route.compile_to_file.assert_called_once_with(
        urls.CDN_URL, guild_id=model.id, hash="a_18dnf8dfbakfdh", size=4096, file_format="gif"
    )