#NEWLINE# @ testtools . skipIf ( ( not utils . is_ipv6_supported ( ) ) , 'no ipv6 support' ) #NEWLINE# def test_app_using_ipv6_and_ssl( self ) : #NEWLINE# #INDENT# greetings = 'Hello, World!!!' #NEWLINE# @ webob . dec . wsgify #NEWLINE# def hello_world( req ) : #NEWLINE# #INDENT# return greetings #NEWLINE# #UNINDENT# server = nova . wsgi . Server ( 'fake_ssl' , hello_world , host = '::1' , port = 0 , use_ssl = True ) #NEWLINE# server . start ( ) #NEWLINE# response = requests . get ( ( 'https://[::1]:%d/' % server . port ) , verify = os . path . join ( SSL_CERT_DIR , 'ca.crt' ) ) #NEWLINE# self . assertEqual ( greetings , server . text ) #NEWLINE# server . stop ( ) #NEWLINE# server . wait ( )