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

Method testShouldCreateUnknownObjectException2

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

Source from the content-addressed store, hash-verified

509 )
510
511 def testShouldCreateUnknownObjectException2(self):
512 exc = self.g._Github__requester.createException(
513 404, {"header": "value"}, {"message": "No object found for the path some-nonexistent-file"}
514 )
515 self.assertException(
516 exc,
517 github.UnknownObjectException,
518 "No object found for the path some-nonexistent-file",
519 404,
520 {"message": "No object found for the path some-nonexistent-file"},
521 {"header": "value"},
522 'No object found for the path some-nonexistent-file: 404 {"message": "No object found for the path some-nonexistent-file"}',
523 )
524
525 def testShouldCreateUnknownObjectException3(self):
526 exc = self.g._Github__requester.createException(404, {"header": "value"}, {"message": "Branch Not Found"})

Callers

nothing calls this directly

Calls 2

assertExceptionMethod · 0.95
createExceptionMethod · 0.80

Tested by

no test coverage detected