tests/test-url.py
branchstable
changeset 13248 00411a4fa1bb
parent 12865 4c50552fc9bc
child 13249 75d0c38a0bca
equal deleted inserted replaced
13246:a01c52b08c5f 13248:00411a4fa1bb
    34 check(_verifycert({'subject': ()},
    34 check(_verifycert({'subject': ()},
    35                   'example.com'),
    35                   'example.com'),
    36       'no commonName found in certificate')
    36       'no commonName found in certificate')
    37 check(_verifycert(None, 'example.com'),
    37 check(_verifycert(None, 'example.com'),
    38       'no certificate received')
    38       'no certificate received')
       
    39 
       
    40 # Unicode (IDN) certname isn't supported
       
    41 check(_verifycert(cert(u'\u4f8b.jp'), 'example.jp'),
       
    42       'IDN in certificate not supported')