def test_bad_link() -> None:
    with pytest.raises(ValueError):
        specparser.Spec.loads('\n[meta]\nversion = 0\n\n[role."kotlin-sdk"]\ntype = {link = "https://docs.mongodb.com/realm-sdks/kotlin/latest/"}')
    with pytest.raises(ValueError):
        specparser.Spec.loads('\n[meta]\nversion = 0\n\n[role."kotlin-sdk"]\ntype = {link = "https://docs.mongodb.com/realm-sdks/%s/kotlin/latest/%s"}')
def test_bad_link() -> None:
    with pytest.raises(ValueError):
        specparser.Spec.loads('\n[meta]\nversion = 0\n\n[role."kotlin-sdk"]\ntype = {link = "https://docs.mongodb.com/realm-sdks/kotlin/latest/"}')
    with pytest.raises(ValueError):
        specparser.Spec.loads('\n[meta]\nversion = 0\n\n[role."kotlin-sdk"]\ntype = {link = "https://docs.mongodb.com/realm-sdks/%s/kotlin/latest/%s"}')