コード例 #1
0
 def test_ipv6(self):
     if socket.has_ipv6:
         from acme.standalone import TLSServer
         server = TLSServer(('', 0),
                            socketserver.BaseRequestHandler,
                            bind_and_activate=True,
                            ipv6=True)
         server.server_close()  # pylint: disable=no-member
コード例 #2
0
 def test_ipv6(self):
     if socket.has_ipv6:
         from acme.standalone import TLSServer
         server = TLSServer(
             ('', 0), socketserver.BaseRequestHandler, bind_and_activate=True, ipv6=True)
         server.server_close()  # pylint: disable=no-member
コード例 #3
0
 def test_bind(self):  # pylint: disable=no-self-use
     from acme.standalone import TLSServer
     server = TLSServer(
         ('', 0), socketserver.BaseRequestHandler, bind_and_activate=True)
     server.server_close()  # pylint: disable=no-member