diff --git a/tests/test_converter.py b/tests/test_converter.py index 69868ef..3907b92 100644 --- a/tests/test_converter.py +++ b/tests/test_converter.py @@ -66,6 +66,18 @@ def test_to_idna_single(self): self.assertEqual(expected, actual) + def test_single_very_long_fqdn(self): + """ + Tests the conversion of a very long FQDN. + """ + + domain_to_test = "แบก" + "a" * 955 + ".com" + + expected = "แบก" + "a" * 955 + ".com" + actual = Converter(domain_to_test).get_converted() + + self.assertEqual(expected, actual) + def test_to_idna_multiple(self): """ Runs and tests Converter.