#NEWLINE# def _patch_shell_client_factory( self ) : #NEWLINE# #INDENT# mock_shell_client_factory = self . patch ( 'app.deployment.remote_service.ShellClientFactory' ) #NEWLINE# mock_shell_client = Mock ( ShellClient ) #NEWLINE# mock_shell_client_factory . create . return_value = self #NEWLINE# return mock_shell_client