circuitpython/tests/net_inet
Damien George f36975b679 tests/net_inet: Update tls test to work with CPython and incl new site.
CPython only supports the server_hostname keyword arg via the SSLContext
object, so use that instead of the top-level ssl.wrap_socket.  This allows
the test to run on CPython the same as uPy.

Also add the "Host:" header to correctly make a GET request (for URLs that
are hosted on other servers).  This is not strictly needed to test the SSL
connection but helps to debug things when printing the response.
2017-10-26 12:29:24 +11:00
..
README tests/net_inet: Move tests which don't require full Internet to net_hosted. 2017-06-23 21:12:32 +03:00
test_tls_sites.py tests/net_inet: Update tls test to work with CPython and incl new site. 2017-10-26 12:29:24 +11:00
test_tls_sites.py.exp tests/net_inet: Update tls test to work with CPython and incl new site. 2017-10-26 12:29:24 +11:00

This directory contains network tests which require Internet connection.
Note that these tests are not run as part of the main testsuite and need
to be run seperately (from the main test/ directory):

    ./run-tests net_inet/*.py