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

Method testShouldCreateUnknownObjectException

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

Source from the content-addressed store, hash-verified

497 )
498
499 def testShouldCreateUnknownObjectException(self):
500 exc = self.g._Github__requester.createException(404, {"header": "value"}, {"message": "Not Found"})
501 self.assertException(
502 exc,
503 github.UnknownObjectException,
504 None,
505 404,
506 {"message": "Not Found"},
507 {"header": "value"},
508 '404 {"message": "Not Found"}',
509 )
510
511 def testShouldCreateUnknownObjectException2(self):
512 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