Mercurial > public > mercurial-scm > hg
comparison tests/test-url.py @ 12724:66e7ba85585b
test-url: remove trailing whitespace
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Tue, 12 Oct 2010 11:02:05 -0500 |
parents | 5c8353692123 |
children | 24f16c2c6d41 |
comparison
equal
deleted
inserted
replaced
12723:eaa09d25e7c6 | 12724:66e7ba85585b |
---|---|
7 def cert(cn): | 7 def cert(cn): |
8 return dict(subject=((('commonName', cn),),)) | 8 return dict(subject=((('commonName', cn),),)) |
9 | 9 |
10 from mercurial.url import _verifycert | 10 from mercurial.url import _verifycert |
11 | 11 |
12 # Test non-wildcard certificates | 12 # Test non-wildcard certificates |
13 check(_verifycert(cert('example.com'), 'example.com'), | 13 check(_verifycert(cert('example.com'), 'example.com'), |
14 None) | 14 None) |
15 check(_verifycert(cert('example.com'), 'www.example.com'), | 15 check(_verifycert(cert('example.com'), 'www.example.com'), |
16 'certificate is for example.com') | 16 'certificate is for example.com') |
17 check(_verifycert(cert('www.example.com'), 'example.com'), | 17 check(_verifycert(cert('www.example.com'), 'example.com'), |