code: def test_deploy_error(self):
      config = load_config(
          remote_branch="test",
      )
  
      with self.assertLogs("mkdocs", level="ERROR") as cm:
          with self.assertRaises(Abort):
              gh_deploy.gh_deploy(config)
      self.assertEqual(
          cm.output,
          [
              "ERROR:mkdocs.commands.gh_deploy:Failed to deploy to GitHub with error: \n"
              "TestError123"
          ],
      )
  
imports: import unittest
  from unittest import mock
  from ghp_import import GhpError
  from mkdocs import __version__
  from mkdocs.commands import gh_deploy
  from mkdocs.exceptions import Abort
  from mkdocs.tests.base import load_config
label_desc: Use image node_id 12 for calling the TestGitHubDeploy obj's underlying member method code with example usage: obj.test_deploy_error() without return types