(self)
| 258 | ) |
| 259 | |
| 260 | def testBaseUrlPrefixRedirection(self): |
| 261 | # replay data forged |
| 262 | gh = github.Github(base_url="https://api.github.com/api/v3") |
| 263 | self.assertEqual(gh.get_repo("PyGithub/PyGithub").name, "PyGithub") |
| 264 | self.logger.info.assert_called_once_with( |
| 265 | "Following Github server redirection from /api/v3/repos/PyGithub/PyGithub to /repos/PyGithub/PyGithub" |
| 266 | ) |
| 267 | |
| 268 | def testHostnameHasDomain(self): |
| 269 | assert self.g.requester.__hostnameHasDomain("github.com", "github.com") |