/
niceSOFT
/
python3-pyOpenSSL
Обзор
Документация
Войти
/
niceSOFT
/
python3-pyOpenSSL
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
17.3.0
tests/test_tsafe.py
23 строки
659 B
Alex Chan
Convert a few more small test classes to be pytest-style (#585)
20 дек 2016, 01:00
20 дек 2016, 01:00
deec934
Код
Авторство
О чём код?
# Copyright (C) Jean-Paul Calderone # See LICENSE for details. """ Unit tests for `OpenSSL.tsafe`. """ from OpenSSL.SSL import TLSv1_METHOD, Context from OpenSSL.tsafe import Connection class TestConnection(object): """ Tests for `OpenSSL.tsafe.Connection`. """ def test_instantiation(self): """ `OpenSSL.tsafe.Connection` can be instantiated. """ # The following line should not throw an error. This isn't an ideal # test. It would be great to refactor the other Connection tests so # they could automatically be applied to this class too. Connection(Context(TLSv1_METHOD), None)