~txaws-dev/txaws/trunk

« back to all changes in this revision

Viewing changes to txaws/client/tests/test_client.py

  • Committer: Thomas Hervé
  • Date: 2011-11-29 18:47:00 UTC
  • mto: This revision was merged to the branch mainline in revision 103.
  • Revision ID: thomas@canonical.com-20111129184700-mgsdk3lhwqwbbhax
And skip the test

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
from OpenSSL.crypto import load_certificate, FILETYPE_PEM
4
4
from OpenSSL.SSL import Error as SSLError
 
5
from OpenSSL.version import __version__ as pyopenssl_version
5
6
 
6
7
from twisted.internet import reactor
7
8
from twisted.internet.ssl import DefaultOpenSSLContextFactory
294
295
        query = BaseQuery("an action", "creds", endpoint)
295
296
        d = query.get_page("https://127.0.0.1:%d/file" % (self.portno,))
296
297
        return d.addCallback(self.assertEquals, "0123456789")
 
298
 
 
299
    if pyopenssl_version < "0.12":
 
300
        test_ssl_subject_alt_name.skip = (
 
301
            "subjectAltName not supported by older PyOpenSSL")