def METHOD_NAME(self, mock_get):
    # Create response mock
    mock_resp = MagicMock()
    mock_resp.raise_for_status.return_value = None
    mock_resp.json.return_value = 'data'
    mock_get.return_value = mock_resp
    gh = GithubHelper('access_token', 'username')
    data = gh.search_repo('owner', 'repo', 'test.txt', '')
    self.assertEqual(data, 'data')
    mock_get.assert_called_once_with(
        'https://api.github.com/repos/owner/repo/contents/test.txt',
        headers={"Authorization": "token access_token", "Content-Type": "application/vnd.github+json"}
    )