<s> from importlib import import_module <EOL> from twisted . trial import unittest <EOL> class ScrapyUtilsTest ( unittest . TestCase ) : <EOL> def test_required_openssl_version ( self ) : <EOL> try : <EOL> module = import_module ( '<STR_LIT>' ) <EOL> except ImportError as ex : <EOL> raise unittest . SkipTest ( "<STR_LIT>" ) <EOL> if hasattr ( module , '<STR_LIT>' ) : <EOL> installed_version = [ int ( x ) for x in module . __version__ . split ( '<STR_LIT:.>' ) [ : <NUM_LIT:2> ] ] <EOL> assert installed_version >= [ <NUM_LIT:0> , <NUM_LIT:6> ] , "<STR_LIT>" <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
