summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-01-20 19:53:07 +0100
committerFlorian Bruhin <me@the-compiler.org>2020-01-20 19:53:07 +0100
commit66c51ad350b0d2b5082f867045f4ca1a7e712703 (patch)
treec805d67d0e44fbca0387cc5c2f20b04adf048281
parent500d257d3a66d6a185f1e7125127d0d53341e398 (diff)
downloadqutebrowser-66c51ad350b0d2b5082f867045f4ca1a7e712703.tar.gz
qutebrowser-66c51ad350b0d2b5082f867045f4ca1a7e712703.zip
Add comment for test
-rw-r--r--tests/unit/config/test_configutils.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/unit/config/test_configutils.py b/tests/unit/config/test_configutils.py
index bcf7ad64a..1046a1de6 100644
--- a/tests/unit/config/test_configutils.py
+++ b/tests/unit/config/test_configutils.py
@@ -229,7 +229,13 @@ def test_get_equivalent_patterns(empty_values):
assert empty_values.get_for_pattern(pat2) == 'pat2 value'
-def test_get_trailing_url(values):
+def test_get_trailing_dot(values):
+ """A domain with a trailing dot is equivalent to the same without:
+
+ http://www.dns-sd.org/trailingdotsindomainnames.html
+
+ Thus, we expect to get the same setting for both.
+ """
other_pattern = urlmatch.UrlPattern('https://www.example.org./')
values.add('example.org value', other_pattern)
assert values.get_for_url() == 'global value'