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 request to get the user info
    mock_response = mock.MagicMock(status_code=200)
    self.mock_requests.get.return_value = mock_response
    verified_emails = [
        {
            "email": f"tommy_tester@example_{i}.com",
            "verified": True,
            "visibility": None,
            "primary": False,
        }
        for i in range(5)
    ]
    # set one of the verified emails to be the primary
    verified_emails[3]["primary"] = True
    mock_response.json.return_value = verified_emails
    # When
    github_user = GithubUser(
        "test-code",
        client_id=self.test_client_id,
        client_secret=self.test_client_secret,
    )
    primary_email = github_user._get_primary_email()
    # Then
    assert primary_email == verified_emails[3]["email"]