<s> import os , sys <EOL> sys . path . append ( os . path . dirname ( __file__ ) + "<STR_LIT>" ) <EOL> from test_helper import create_virtenv , run_test <EOL> ENV_NAME = os . path . abspath ( "<STR_LIT>" + os . path . basename ( sys . executable ) ) <EOL> NOSETESTS_EXE = os . path . abspath ( os . path . join ( ENV_NAME , "<STR_LIT>" , "<STR_LIT>" ) ) <EOL> PYOPENSSL_DIR = os . path . abspath ( os . path . join ( ENV_NAME , "<STR_LIT>" , "<STR_LIT>" ) ) <EOL> packages = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] <EOL> create_virtenv ( ENV_NAME , packages , force_create = True ) <EOL> import subprocess <EOL> subprocess . check_call ( [ "<STR_LIT>" , "<STR_LIT>" , '<STR_LIT>' , <EOL> os . path . join ( PYOPENSSL_DIR , "<STR_LIT:test>" , "<STR_LIT>" ) ] ) <EOL> expected = [ { '<STR_LIT>' : <NUM_LIT> , '<STR_LIT>' : <NUM_LIT:1> } ] <EOL> run_test ( [ NOSETESTS_EXE ] , cwd = PYOPENSSL_DIR , expected = expected ) </s>
