MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / testUserAgent

Method testUserAgent

tests/Authentication.py:329–331  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

327 self.assertDictEqual(payload, {"iat": 1550055301, "exp": 1550055391, "iss": str(APP_ID)})
328
329 def testUserAgent(self):
330 g = github.Github(user_agent="PyGithubTester")
331 self.assertEqual(g.get_user("jacquev6").name, "Vincent Jacques")
332
333 def testAuthorizationHeaderWithLogin(self):
334 # See special case in Framework.fixAuthorizationHeader

Callers

nothing calls this directly

Calls 1

get_userMethod · 0.95

Tested by

no test coverage detected