Skip to content

Commit

Permalink
Add a missing test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
funilrys committed Oct 27, 2024
1 parent 1e04e1e commit dd90514
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dd90514

Please sign in to comment.