Add test for server name indication (bug 875142)

This commit is contained in:
Kumar McMillan 2013-07-11 14:39:25 -05:00
Родитель c84d0fd91b
Коммит f604ed588d
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -30,3 +30,12 @@ def test_packaged_app_bundle():
out = validate_packaged_app("tests/resources/packaged_app.zip",
listed=False, format=None)
assert out.get_resource("packaged")
@safe
def test_server_name_indication():
# Make sure this doesn't raise an ImportError.
# This is a sanity check to make sure all requirements are installed
# to handle SSL Server Name Indication.
# See https://bugzilla.mozilla.org/show_bug.cgi?id=875142
from requests.packages.urllib3.contrib import pyopenssl