Changeset View
Changeset View
Standalone View
Standalone View
tests/test-url.py
Show First 20 Lines • Show All 269 Lines • ▼ Show 20 Line(s) | check( | ||||
_verifycert({'subject': (((u'commonName', u'a*b*.com'),),)}, 'axxbxxc.com'), | _verifycert({'subject': (((u'commonName', u'a*b*.com'),),)}, 'axxbxxc.com'), | ||||
b'too many wildcards in certificate DNS name: a*b*.com', | b'too many wildcards in certificate DNS name: a*b*.com', | ||||
) | ) | ||||
def test_url(): | def test_url(): | ||||
""" | """ | ||||
>>> from mercurial import error, pycompat | >>> from mercurial import error, pycompat | ||||
>>> from mercurial.util import url | >>> from mercurial.utils.urlutil import url | ||||
>>> from mercurial.utils.stringutil import forcebytestr | >>> from mercurial.utils.stringutil import forcebytestr | ||||
This tests for edge cases in url.URL's parsing algorithm. Most of | This tests for edge cases in url.URL's parsing algorithm. Most of | ||||
these aren't useful for documentation purposes, so they aren't | these aren't useful for documentation purposes, so they aren't | ||||
part of the class's doc tests. | part of the class's doc tests. | ||||
Query strings and fragments: | Query strings and fragments: | ||||
▲ Show 20 Lines • Show All 177 Lines • Show Last 20 Lines |