<s> from genty import genty , genty_dataset <EOL> from app . util . shell . shell_client_factory import ShellClientFactory <EOL> from app . util . shell . local_shell_client import LocalShellClient <EOL> from app . util . shell . remote_shell_client import RemoteShellClient <EOL> from test . framework . base_unit_test_case import BaseUnitTestCase <EOL> @ genty <EOL> class TestShellClientFactory ( BaseUnitTestCase ) : <EOL> @ genty_dataset ( <EOL> local_shell = ( LocalShellClient , '<STR_LIT:localhost>' ) , <EOL> remote_shell = ( RemoteShellClient , '<STR_LIT>' ) <EOL> ) <EOL> def test_create_returns_instance_of_expected ( self , expected_class_type , host_name ) : <EOL> shell_client = ShellClientFactory . create ( host = host_name , user = '<STR_LIT>' ) <EOL> self . assertEqual ( expected_class_type , type ( shell_client ) ) </s>
