(self)
| 535 | ) |
| 536 | |
| 537 | def testShouldCreateGithubException(self): |
| 538 | for status in range(400, 600): |
| 539 | with self.subTest(status=status): |
| 540 | exc = self.g._Github__requester.createException( |
| 541 | status, {"header": "value"}, {"message": "Something unknown"} |
| 542 | ) |
| 543 | self.assertException( |
| 544 | exc, |
| 545 | github.GithubException, |
| 546 | "Something unknown", |
| 547 | status, |
| 548 | {"message": "Something unknown"}, |
| 549 | {"header": "value"}, |
| 550 | f'Something unknown: {status} {{"message": "Something unknown"}}', |
| 551 | ) |
| 552 | |
| 553 | def testShouldCreateExceptionWithoutMessage(self): |
| 554 | for status in range(400, 600): |
nothing calls this directly
no test coverage detected