def METHOD_NAME(self):
    # Given
    # mock the post to get the access token
    self.mock_requests.post.return_value = mock.MagicMock(
        status_code=200, text="access_token=123456"
    )
    # mock the get to get the user info
    mock_response = mock.MagicMock(status_code=200)
    self.mock_requests.get.return_value = mock_response
    mock_response.json.return_value = {"name": "tommy tester", "id": 123456}
    # When
    github_user = GithubUser(
        "test-code",
        client_id=self.test_client_id,
        client_secret=self.test_client_secret,
    )
    user_name_and_id = github_user._get_user_name_and_id()
    # Then
    assert user_name_and_id == {
        "first_name": "tommy",
        "last_name": "tester",
        "github_user_id": 123456,
    }