<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import , division , print_function <EOL> try : <EOL> import unittest2 as unittest <EOL> except ImportError : <EOL> import unittest <EOL> from tls . c import api <EOL> class TestSSLMethod ( unittest . TestCase ) : <EOL> @ unittest . skipIf ( api . OPENTLS_NO_SSL2 , '<STR_LIT>' ) <EOL> def test_ssl_v2 ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertTrue ( api . SSLv2_method ( ) ) <EOL> @ unittest . skipIf ( not api . OPENTLS_NO_SSL2 , '<STR_LIT>' ) <EOL> def test_ssl_v2_disabled ( self ) : <EOL> """<STR_LIT>""" <EOL> with self . assertRaises ( NotImplementedError ) : <EOL> api . SSLv2_method ( ) <EOL> @ unittest . skipIf ( api . OPENTLS_NO_SSL2 , '<STR_LIT>' ) <EOL> def test_ssl_v2_client ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertTrue ( api . SSLv2_client_method ( ) ) <EOL> @ unittest . skipIf ( not api . OPENTLS_NO_SSL2 , '<STR_LIT>' ) <EOL> def test_ssl_v2_client_disabled ( self ) : <EOL> """<STR_LIT>""" <EOL> with self . assertRaises ( NotImplementedError ) : <EOL> api . SSLv2_client_method ( ) <EOL> @ unittest . skipIf ( api . OPENTLS_NO_SSL2 , '<STR_LIT>' ) <EOL> def test_ssl_v2_server ( self ) : <EOL> """<STR_LIT>""" <EOL> self . assertTrue ( api . SSLv2_server_method ( ) ) <EOL> @ unittest . skipIf ( not api . OPENTLS_NO_SSL2 , '<STR_LIT>' ) <EOL> def test_ssl_v2_server_disabled ( self ) : <EOL> """<STR_LIT>""" <EOL> with self . assertRaises ( NotImplementedError ) : <EOL> api . SSLv2_server_method ( ) <EOL> def test_ssl_v3 ( self ) : <EOL> self . assertTrue ( api . SSLv3_method ( ) ) <EOL> def test_ssl_v3_client ( self ) : <EOL> self . assertTrue ( api . SSLv3_client_method ( ) ) <EOL> def test_ssl_v3_server ( self ) : <EOL> self . assertTrue ( api . SSLv3_server_method ( ) ) <EOL> def test_tls_v1 ( self ) : <EOL> self . assertTrue ( api . TLSv1_method ( ) ) <EOL> def test_tls_v1_client ( self ) : <EOL> self . assertTrue ( api . TLSv1_client_method ( ) ) <EOL> def test_tls_v1_server ( self ) : <EOL> self . assertTrue ( api . TLSv1_server_method ( ) ) <EOL> def test_ssl_v23 ( self ) : <EOL> self . assertTrue ( api . SSLv23_method ( ) ) <EOL> def test_ssl_v23_client ( self ) : <EOL> self . assertTrue ( api . SSLv23_client_method ( ) ) <EOL> def test_ssl_v23_server ( self ) : <EOL> self . assertTrue ( api . SSLv23_server_method ( ) ) </s>
