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

Method testShouldCreateBadCredentialsException

tests/Requester.py:435–445  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

433 self.assertEqual(str(exception), string)
434
435 def testShouldCreateBadCredentialsException(self):
436 exc = self.g._Github__requester.createException(401, {"header": "value"}, {"message": "Bad credentials"})
437 self.assertException(
438 exc,
439 github.BadCredentialsException,
440 None,
441 401,
442 {"message": "Bad credentials"},
443 {"header": "value"},
444 '401 {"message": "Bad credentials"}',
445 )
446
447 def testShouldCreateTwoFactorException(self):
448 exc = self.g._Github__requester.createException(

Callers

nothing calls this directly

Calls 2

assertExceptionMethod · 0.95
createExceptionMethod · 0.80

Tested by

no test coverage detected