summaryrefslogtreecommitdiff
path: root/tests/validators
diff options
context:
space:
mode:
authorMike Edmunds <medmunds@gmail.com>2024-12-12 17:30:20 -0800
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-12-13 16:10:34 +0100
commit9a891c387f752b1fa7c4d7b436cd8491e8f16eca (patch)
treed46414ce34d7b98e963b744b62f1f3a1a81910c8 /tests/validators
parent78a55a04c9e6591167e1993c35d3737a705c6ec9 (diff)
Refs #36007 -- Added IDNA 2008 test case for URLValidator.
Test a domain that is valid under IDNA 2008 but not IDNA 2003. This helps verify that the branch in URLValidator which calls punycode() is not actually being used for IDNs. punycode() implements IDNA 2003, so the domain would fail to validate if that branch were active for IDNs.
Diffstat (limited to 'tests/validators')
-rw-r--r--tests/validators/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/validators/tests.py b/tests/validators/tests.py
index 4ae0f6413e..7455c93d40 100644
--- a/tests/validators/tests.py
+++ b/tests/validators/tests.py
@@ -126,6 +126,7 @@ VALID_URLS = [
"http://مثال.إختبار",
"http://例子.测试",
"http://उदाहरण.परीक्षा",
+ "https://މިހާރު.com", # (valid in IDNA 2008 but not IDNA 2003)
"http://-.~_!$&'()*+,;=%40:80%2f@example.com",
"http://xn--7sbb4ac0ad0be6cf.xn--p1ai",
"http://1337.net",