Skip to content

Commit a16a457

Browse files
[issue-825] Add tests for allowing capital letters in URL/URIs
Signed-off-by: Armin Tänzer <armin.taenzer_ext@nanotempertech.com>
1 parent c3ceff7 commit a16a457

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/spdx/validation/test_uri_validators.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"https://spdx.org/spdxdocs/spdx-tools-v1.2-3F2504E0-4F89-41D3-9A0C-0305E82...",
1515
"http://some.url",
1616
"http://ftp.gnu.org/gnu/glibc/glibc-ports-2.15.tar.gz",
17+
"HTTP://SOME.URL",
1718
],
1819
)
1920
def test_valid_url(input_value):
@@ -79,6 +80,7 @@ def test_invalid_url(input_value):
7980
"bzr+https://bzr.myproject.org/MyProject/trunk@2019",
8081
"bzr+http://bzr.myproject.org/MyProject/trunk@v1.0",
8182
"bzr+https://bzr.myproject.org/MyProject/trunk@2019#src/somefile.c",
83+
"BZR+HTTPS://BZR.MYPROJECT.ORG/MYPROJECT/TRUNK@2019#SRC/SOMEFILE.C",
8284
],
8385
)
8486
def test_valid_package_download_location(input_value):
@@ -106,6 +108,7 @@ def test_invalid_package_download_location(input_value):
106108
"https://spdx.org/spdxdocs/spdx-tools-v1.2-3F2504E0-4F89-41D3-9A0C-0305E82...",
107109
"h://someweirdtest^?",
108110
"https://some.uri that goes on!?",
111+
"HTtPS://SOME.URI With CAPITALS",
109112
],
110113
)
111114
def test_valid_uri(input_value):

0 commit comments

Comments
 (0)