<s> '''<STR_LIT>''' <EOL> import os <EOL> import sure <EOL> import sys <EOL> from mock import Mock <EOL> ROOT_DIR = os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT:..>' ) <EOL> sys . path . append ( ROOT_DIR ) <EOL> from fixtures import config <EOL> from lib . modules import config as config_loader <EOL> def load_config ( filename ) : <EOL> name = os . path . basename ( filename ) <EOL> if name == '<STR_LIT>' : <EOL> return config . analyzer <EOL> elif name == '<STR_LIT>' : <EOL> return config . collector <EOL> elif name == '<STR_LIT>' : <EOL> return config . services <EOL> else : <EOL> raise Exception ( '<STR_LIT>' . format ( name ) ) <EOL> orig_load = config_loader . load <EOL> config_loader . load = Mock ( side_effect = load_config ) <EOL> def teardown ( ) : <EOL> '''<STR_LIT>''' <EOL> config_loader . load = orig_load </s>
