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

Method testShouldCreateUnknownObjectException3

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

Source from the content-addressed store, hash-verified

523 )
524
525 def testShouldCreateUnknownObjectException3(self):
526 exc = self.g._Github__requester.createException(404, {"header": "value"}, {"message": "Branch Not Found"})
527 self.assertException(
528 exc,
529 github.UnknownObjectException,
530 "Branch Not Found",
531 404,
532 {"message": "Branch Not Found"},
533 {"header": "value"},
534 'Branch Not Found: 404 {"message": "Branch Not Found"}',
535 )
536
537 def testShouldCreateGithubException(self):
538 for status in range(400, 600):

Callers

nothing calls this directly

Calls 2

assertExceptionMethod · 0.95
createExceptionMethod · 0.80

Tested by

no test coverage detected