|
|
@ -67,7 +67,12 @@ def test_iri(): |
|
|
|
assert me.network_success and me.status_code == "20" |
|
|
|
me = Agunua.GeminiUri("gemini://café.mozz.us/files/𝒻𝒶𝓃𝒸𝓎.txt", insecure=True) |
|
|
|
assert me.network_success and me.status_code == "20" |
|
|
|
|
|
|
|
|
|
|
|
# For all tests with a wrong name or a literal IP address, it |
|
|
|
# currently (2021-11-29) fails since Stargazer closes abruptly the TLS |
|
|
|
# session instead of returning a Gemini error code (typically 53) |
|
|
|
# <https://todo.sr.ht/~zethra/stargazer/25>. TODO |
|
|
|
|
|
|
|
def test_wrong_name(): |
|
|
|
me = Agunua.GeminiUri("gemini://radia.bortzmeyer.org/") |
|
|
|
assert not me.network_success |
|
|
|