<s> import os <EOL> import sys <EOL> import unittest <EOL> lib = os . path . dirname ( __file__ ) + os . sep + "<STR_LIT:..>" + os . sep + "<STR_LIT>" <EOL> sys . path . append ( lib ) <EOL> from agents . factory import InfrastructureAgentFactory <EOL> from custom_exceptions import UnknownInfrastructureException <EOL> class TestFactory ( unittest . TestCase ) : <EOL> def test_bad_agent_name ( self ) : <EOL> self . assertRaises ( UnknownInfrastructureException , <EOL> InfrastructureAgentFactory . create_agent , '<STR_LIT>' ) </s>
