@patch('<STR_LIT>')<EOL><INDENT>def run_command(self, args, fake_exit, raise_on_error=True):<DEDENT>
with patch('<STR_LIT>', wraps=self.exec_docker_patch) as fake_exec_docker:<EOL><INDENT>fake_exit.side_effect = SysExit('<STR_LIT>')<EOL>self.fake_exec_docker = fake_exec_docker<EOL>sys.argv = ['<STR_LIT>'] + args.split('<STR_LIT:U+0020>')<EOL>try:<EOL><INDENT>client_entrypoint()<EOL><DEDENT>except SysExit:<EOL><INDENT>pass<EOL><DEDENT>for call in fake_exit.mock_calls:<EOL><INDENT>name, args, kwargs = call<EOL>if len(args) == <NUM_LIT:1> and args[<NUM_LIT:0>] > <NUM_LIT:0> and raise_on_error:<EOL><INDENT>self._clear_stdout()<EOL>raise CommandError('<STR_LIT>'.format('<STR_LIT:U+0020>'.join(sys.argv), args[<NUM_LIT:0>]))<EOL><DEDENT><DEDENT>result = self.stdout<EOL>self._clear_stdout()<EOL>return result<EOL><DEDENT>
Run a command through the Dusty client entrypoint, e.g. simulating
        the Dusty CLI as close as possible without having to call a subprocess.
        This command raises if the command fails, otherwise it returns the
        stdout generated by the command.