From b1fc5d74e4c94824ed06646034eef41248a58bd8 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Fri, 26 Nov 2021 15:22:10 -0500 Subject: [PATCH] Add hostname test --- tests/test_jetforce.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_jetforce.py b/tests/test_jetforce.py index 5cd5cd6..a5a8c7a 100644 --- a/tests/test_jetforce.py +++ b/tests/test_jetforce.py @@ -230,6 +230,13 @@ class FunctionalTestCase(unittest.TestCase): resp = self.request("gemini://café.localhost\r\n") self.assertEqual(resp, "20 text/gemini\r\nJetforce rules!\n") + def test_hostname_case_insensitive(self): + """ + In the URI spec, the authority component is case-insensitive. + """ + resp = self.request("gemini://LocalHost\r\n") + self.assertEqual(resp, "20 text/gemini\r\nJetforce rules!\n") + if __name__ == "__main__": unittest.main()