equal
deleted
inserted
replaced
3 def check(a, b): |
3 def check(a, b): |
4 if a != b: |
4 if a != b: |
5 print (a, b) |
5 print (a, b) |
6 |
6 |
7 def cert(cn): |
7 def cert(cn): |
8 return dict(subject=((('commonName', cn),),)) |
8 return {'subject': ((('commonName', cn),),)} |
9 |
9 |
10 from mercurial.sslutil import _verifycert |
10 from mercurial.sslutil 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'), |