code: def test_connection_success(self):
      hook = GithubHook()
      hook.client = Mock(spec=Github)
      hook.client.get_user.return_value = NamedUser.NamedUser
  
      status, msg = hook.test_connection()
  
      assert status is True
      assert msg == "Successfully connected to GitHub."
  
file_path: airflow/tests/providers/github/hooks/test_github.py
imports: from __future__ import annotations
  from unittest.mock import Mock, patch
  import pytest
  from github import BadCredentialsException, Github, NamedUser
  from airflow.models import Connection
  from airflow.providers.github.hooks.github import GithubHook
  from airflow.utils import db
label_desc: Use image node_id 3 for calling the TestGithubHook obj's underlying member method code with example usage: obj.test_connection_success() without return types