<s> from __future__ import print_function , absolute_import , division <EOL> import os <EOL> import shutil <EOL> import subprocess <EOL> import tempfile <EOL> import yaml <EOL> from distutils . spawn import find_executable <EOL> from osprey . config import Config <EOL> OSPREY_BIN = find_executable ( '<STR_LIT>' ) <EOL> def test_1 ( ) : <EOL> assert OSPREY_BIN is not None <EOL> cwd = os . path . abspath ( os . curdir ) <EOL> dirname = tempfile . mkdtemp ( ) <EOL> try : <EOL> os . chdir ( dirname ) <EOL> subprocess . check_call ( [ OSPREY_BIN , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> assert os . path . exists ( '<STR_LIT>' ) <EOL> with open ( '<STR_LIT>' , '<STR_LIT:rb>' ) as f : <EOL> yaml . load ( f ) <EOL> Config ( '<STR_LIT>' ) <EOL> finally : <EOL> os . chdir ( cwd ) <EOL> shutil . rmtree ( dirname ) </s>
